DEV Community

Discussion on: TypeScript is a waste of time. Change my mind.

Collapse
 
squidbe profile image
squidbe • Edited

When you said...

Do I believe that there are situations out there where TypeScript should be used?
Absolutely!

...you basically ended the article there. I'm not a big TS fan, but it does have its uses.

<tangent>
What's interesting to me is how Hungarian Notation seems to have fallen out of favor. It's a very simple way of letting devs know what type a variable should be. Yes, it doesn't change the way vanilla JS handles type errors, but from a practical perspective, when there's not a clear payoff to the added time and cognitive load of using TS, HN can be an extremely simple way to minimize the likelihood of type errors by clarifying the appropriate type, e.g., strFoo, intBar, arrBaz, etc.
Ah, the good ol' days. :-)
</tangent>