C
C
Coder3212017-08-07 23:09:18
JavaScript
Coder321, 2017-08-07 23:09:18

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

3 answer(s)
V
Vitaly, 2017-08-08
@vitali1995

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.

A
Alexander Batukhtin, 2017-08-08
@0lorin

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.

Y
Yeah, 2017-08-17
@Yeah

Personally, I don't like TS in terms of debugging. If your environment is docker, or worse, vagrant, then you will have serious mapping problems, because the paths do not match. For example, I could not set up debugging for docker inside the vagrant.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question