Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Stop right now. Delete your current project. Restart with TypeScript. Enable its strict mode. (Yes the `--strict` flag. It will be fine.) Avoid `any` in your code base. Don't be mad at the errors you get in the beginning. Stick with it. Profit.
I don't want to write VanillaJS anymore. Give me decent TypeScript any day. -
I would definitely recommend it man. It is what a lot of the community want for JS and the language does help a lot in large projects.
-
dmonkey21955yI'm not an expert here, but I started with ts. When it came to use node with actual javascript it was hell.
Editors never warned about typos in variables. I never knew what on earth was a certain variable.
As @k0pernikus said, avoid the any keyword and everything will be great.
Related Rants
We are starting a new project where we decieded to use node.js with express.js. It is quite exciting because we have previoisly use node.js only a little and me and my colleagues are eager to learn something new. As I was doing some research I came upon TypeScript. Do you guys think that it is worth spending more time learning TypeScript and use it in upcoming project?
question
typescript