Ask HN: Should add typescript to my stack or Flow is enough?
#javascript and #typescript users, doing my first steps in JS (after coming from Python). I still don't have a clear answer on whether I should add typescript to my stack ? Types are important for me, so why not settle for Flow ?
Problems that I see 1. Complicates tooling 2. Another language to learn
I intend to use NodeJS 8.1 (supported by AWS Lambda) which supports ES2016, is it good enough for enterprise grade projects?
Help appreciated
(
3 comments
| on HN
)
However, TypeScript is a whole different game, as it is really a superset of JavaScript and let you almost all you can do in JS. The industry support is amazing, most of the major node lib comes with their TypeScript types (from the project itself or from @types/...), and the tooling support in VSCode for example is just amazing.
I looked at Flow a little, and while it seems less intrusive, I am not sure it is as expressive, powerful, and mature as TypeScript typing system.
The trick to realize is that it is not because you have "class", interface, and generics that you have to code JS the Java way. TypeScript does not change your style of writing JS, it just makes it more robust and scalable (with the number of developers & line of code).