Earlier quoted context omitted.
Benefit? When my friendly junior developers add a variable where it isn’t supposed to go the system yells at them. This is much preferable to me yelling at them, or production getting broken. Typescript may be a little bit slower if you never make any mistakes ever , and can keep the full state of your program in your mind at a given time. Nobody makes no mistakes.
If you don't require at least 2 approvals from medior/senior developers for your junior's PRs you're doing it wrong. TypeScript is not a "little bit" slower, I've seen it take over 3 times more time (and frustrations, even for an experienced TS guru) to get simple things done. TypeScript is a colossal waste of time that many sheep gladly embrace because they feel they're expected to. Nobody dares to ask "but why?" wh…
State of JavaScript 2019
371–372 of 372 posts
Re: State of JavaScript 2019
#372Earlier quoted context omitted.
Benefit? When my friendly junior developers add a variable where it isn’t supposed to go the system yells at them. This is much preferable to me yelling at them, or production getting broken. Typescript may be a little bit slower if you never make any mistakes ever , and can keep the full state of your program in your mind at a given time. Nobody makes no mistakes.
If you don't require at least 2 approvals from medior/senior developers for your junior's PRs you're doing it wrong. TypeScript is not a "little bit" slower, I've seen it take over 3 times more time (and frustrations, even for an experienced TS guru) to get simple things done. TypeScript is a colossal waste of time that many sheep gladly embrace because they feel they're expected to. Nobody dares to ask "but why?" wh…
When used right: TS infers most of your types, TS does not add to the lines of code you need to write to get something done (especially if you’re already using propTypes), and TS multiplies your productivity by reducing time spent debugging and by making refactoring super easy.
If you’re interested, I wrote a book about how to use TS, targeted towards intermediate/experienced JS programmers: https://www.amazon.com/Programming-TypeScript-Making-JavaScr...