Live data from Hacker News

TypeScript sucked out much of the joy I had writing JavaScript

twitter.com

11–13 of 13 posts

Re: TypeScript sucked out much of the joy I had writing JavaScript

#11

Anyone try out the tenets in Reliable Javascript (2015), pre-Typescript? The authors praise--and begin with an example from--D3.js, and work through handrolled dependency injection, aspects, and test-driven development with Jasmine. Truly understanding `this`, .bind, .apply, and .call may be essential to a mastery of (vanilla) Javascript.

And "prototype" and closures.

Re: TypeScript sucked out much of the joy I had writing JavaScript

#12
Writing TypeScript can be a bit hard or difficult at times. You can definitely get sucked into battles trying to figure out a lot of dumb shit that obviously works great but that you need to contort to something TypeScript can grok. Some of the errors it complains about are awful.

But on the other side, writing code consuming TypeScript libraries is amazing. Seeing all the type information in the IDE reveals so much, resolves so many questions, and builds confidence so quickly.

The other issue with TypeScript is that tooling is all awful & terrible. Tsconfig is a drag. There's a serious lack of good conventions to follow & tons of ad-hoc stringing shit together. Ideally libraries should output both esm & cjs but typescript literally doesn't support it & you have to run typescript twice, so now you maybe are introducing yet more new tools like concurrently if you want to do a good job. Oh and now your "watch" script is even more janked up too. Deno does a good job of making this pain all go away, but in general TypeScript is one of multiple layers of tooling that simply sucks, that thieves energy & attention.

Re: TypeScript sucked out much of the joy I had writing JavaScript

#13
General response to this is assuming the contrarians don't like type or see no type benefit. But there are those who love static typing enough to dislike Typescript. It's ugly and unsound, how could someone loves static type to death likes Typescript.
Post reply on HN