DEV Community

I’m a Fan of TypeScript, but Please Be Careful!

Dor Moshe on June 07, 2019

This article originally appeared on dormoshe.io There is a phenomenon among front-end developers. It’s a new phenomenon. I diagnose more and mor...
Collapse
 
tracker1 profile image
Michael J. Ryan

I prefer straight JS... while I do often appreciate the extra context that TS provides in my editor, I don't like the extra time it takes to actually write code. I tend to separate my concerns (modules) fairly well and consistently and rarely gain more than I lose in terms of time due to the types of bugs the TS helps to prevent.

Collapse
 
blindfish3 profile image
Ben Calder

I've just posted a couple of comments elsewhere correcting one apparently common misunderstanding of Typescript that really bugs me. TypeScript's compile time type checking is giving people a false sense of security: they start forgetting to do proper type-checking and validation of incoming data and... Well; let's just say it's not my problem :shrug: