this post was submitted on 18 Jul 2023
16 points (100.0% liked)
Programming
13380 readers
1 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Typescript is a really powerful language due to the fact that it is superset of JavaScript. It allows you to do things with types that you cant do in other strongly typed languages like Java or C#. Learning JavaScript first, you would have an easier time grasping advanced typescript concepts. But like others said, JavaScript does allow you to learn bad habits. It takes years to learn how to write JavaScript in a way where you won’t shoot yourself in the foot. TypeScript first would theoretically help keep you on a learning path that would mitigate picking up bad habits. But typescript is a superset of JavaScript after all. If one is determined to sidestep all the nice typings that TypeScript provides you, one can and you will lose all the benefits of TypeScript anyways.