News for hackers. Stuff that matters.
Re:Just Say No to JavaScript by rvense on Tuesday December 10, 2024 @07:14AM (#42376127)
> Most of the problems I see in production have nothing to do with the wrong type being used

I think this depends on how you use the type system in your code. If you're just passing around strings and numbers, then sure. But if you're making explicit types for all the entities your program processes, and if you're structuring them in a way that means you don't have a bunch of undefined fields in the normal case (e.g. by using tagged unions a lot), then Typescript is absolutely, objectively, transformative compared to Javascript.

There are no comments on this comment yet.