DEV Community

Discussion on: The TypeScript Experience

Collapse
 
hillin profile image
hillin

TS is a bit like C++ these days, it's complex, but most of its complexity is for lib authors (for TS, also typing authors). Daily engineering programing experience with TS is trivial 99% of the time, where the remaining 1% is you have to deal with a lib who has complex typings, like rxjs. Really it was those libs who exploit/abuse the expressivity of JS as a dynamicly typed language, and TS was only trying to type everything of them, and I'd say I'm amazed how well TS did. Now I can't imagine writing rxjs code without TS.

Another great benefit of static typing is good support of refactoring. JS simply discourages you to refactor your code because it'd too easy to mess things up. I really doubt if those TS-nay-JS-yayers have worked on a complex enough project to see this room elephant.