Is TypeScript worth it?
Simple question, yet seems to be very debatable from person to person.
But, I need a straightforward answer. Is TypeScript worth learning?
I've seen allot of interesting projects in TypeScript and I feel like it would fit my needs in some projects I want to write where in most cases I don't want to use Python(mainly because Python gets a bit boring over time, and languages like Rust, C, C++ etc would take far too long).
But, I really don't know anything about TS or JS. Shoot, they could both be the absolute same thing..just different languages.
But what do you guys think? Is TS worth learning, or should I dive right into JS?
it is very worth it.
You will be writing much better js code, it prevents you from doing things like this:
not only that, but you have access to namespaces, enums, and interfaces! All very common static language features that actually are useful.
Not only that, but you can use es6 modules without having to add
type="module" -- everything is all precompiled!
Also most editors support typescript, so you are making coding better for everyone!
a bit verbose according to some, and not useful for anyone who doesn't even use js that much??? Also a lot of set up.
Typescript is a superset of js, you technically aren't going to learn anything new. Also, it's not slow??? Maybe it compiles a bit slower, but using
tsc -w (automatically compile on save) makes compiling almost seamless.
Because it is a superset, you may be writing better and maybe faster js code.
guys play my bot cycle plz made in ts owo