r/node • u/Inevitable_Ebb_938 • Apr 06 '24
Unpopular opinion: TypeScript creates more problems than it solves
Companies and individuals sometimes highlight their TypeScript usage as a point of pride. It's seen as an indication of high-quality code and rigorous standards.
Truth is, yes, it may impress your non-technical client when you tell them about how you have this extra step that's supposed to reduce bugs.
In reality, you've replaced the problem of clearly seeing the data types moving around your program with the burden of managing a TypeScript implementation, which is clunky and overly complicated. In reality, it often causes more problems (and headaches) than plain JavaScript. For example, spending an extra 1-2 hours just correcting type errors that don't matter.
Clean JavaScript is king š.

