DEV Community

Discussion on: To Typescript Or Not To?

 
codingjlu profile image
codingjlu

Okay. I didn't express any opinion previously, so I'm not sure what you mean exactly when you talk about all that, but now that I have the opportunity: I really don't like TypeScript because first, (okay, I know this is cringy) it's made by Microsoft (no, I don't use VSCode for my serious projects). Besides that, it's a lot of extra code (and time) you have to write, and often it gets very frustrating messing with types and the such. Also it's just annoying to have to go through another compilation stage to run code. People say Typescript is self-documenting when you read it, but to me it's self-destructing. The syntax just complicates everything and I don't often encounter problems with types of anything. If you want self-documenting, just stick with JSDoc, where there's actually documentation. Why, you can just read the comments!

I'm fine with plain JS. TypeScript doesn't seem to offer me substantial benefits, and where the real bugs are, TypeScript would not solve the problem. So, no to TypeScript.