Answer the question
In order to leave comments, you need to log in
babel or typescript? Does it make sense to learn the second one?
I have some knowledge in Java. Started to delve into JS. Faced with such a choice:
It seems that TS gives a lot of goodies (after Java - manna from heaven), - the same typing is worth it - but it seems to go a little away from the JS concept. He picks up new standards for a long time, but you have to wait until old age for the same typing in JS. Plus, forums and habr write that not all JS libraries are correctly picked up.
On the other hand - Babel. New language features - I don't want to write. Constantly follows the JS standard, which is a save-spot for the developer, if suddenly the "system crashes" (unlike TS). Plus in terms of career, I think that Ecmascript skills will be a big plus than TS skills. Of the minuses - again, Habr writes that Babel periodically shit-codes and compiles longer than TS.
A question for those who have development experience: what is better to focus on right away? There was a double impression (especially after the news that Angular switched to TS), help is needed.
The question is closed. After reading the relevant documentation unconditionally chose TS.
Answer the question
In order to leave comments, you need to log in
You should not attach such high importance to new features.
Google Analytics on my sites shows that the percentage of obsolete browsers among visitors is very high - about 40% of antiquities.
And by the way, the opposition between Typescript and Babel is not appropriate at all.
Typescript - goes the other way.
It is more reliable by definition, since a significant part of the checks are performed even before the code goes to the real browser.
If you are satisfied with the functionality of Typescript, this will be quite appropriate for yourself. The quality of your projects will be higher.
If for some good reason you need ES6 - use Babel to your health.
TypeScript and Babel can be compared, except that their implementation involves precompiling JS.
However, Babel is just a precompiler (i.e. it does not introduce any of its requirements or concepts / concept, it just allows you to write, for example, using syntax of the new JS standard, resulting in code compatible with JS interpreters that do not support it),
while TypeScript is still a different approach/concept ("does not dare" to call it a full-fledged language)
Its main "features" are strict typing, interfaces (in the concept of OOP), signatures of methods of connected libraries.
In Vanilla JS (in "pure" JS) - this is not a "phenomenon", many of this is very lacking. (Especially for programmers who came to JavaScript from other languages, we won’t name which ones :))
Nevertheless, there is still one indisputable advantage of using TypeScript - if this is not a home project, then it does not allow you to “shoot yourself in the foot” during intensive development, at least in relation to - typing and signature.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question