Answer the question
In order to leave comments, you need to log in
Typescript vs ES7?
I'm starting a new node project but can't decide whether to use typescript or not. ts together with angular I like to use, but I didn’t have to with a node. According to the idea, the project will be quite large and will be developed by several people. Maybe someone faced such a choice, share your experience.
Answer the question
In order to leave comments, you need to log in
Without typing in large projects it will be difficult, and in small projects it is more pleasant to use typing. I completely switched to TS, which constantly helps me out.
Examples:
* In JS, changing the name of a variable is quite a feat. With TS, the IDE does this for us.
* Forget about typos - you don't have to be surprised to find them during execution and look for the reason for the sudden undefined.
* New features for reflection, which (for example) Angular uses to the fullest.
This was the choice before me. I chose TS, wrote two not small backends for mobile applications, I never regretted it. Strong typing on large projects shamelessly drives for autocomplete and refactoring using IDE tools. Plus a full-fledged OOP without these prototypes of yours.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question