Is TypeScript worth it?

Simple question, yet seems to be very debatable from person to person.


Is TypeScript worth learning. It seems to have a very clean syntax and seems to be written smoothly. It has some strong ties with JavaScript(duh).

But, I have heard from many developers that it is slow and "too much like JavaScript", and in that case many developers lean more towards JavaScript due to the fact there belief is that TypeScript is too much like JavaScript.

But, I need a straightforward answer. Is TypeScript worth learning?

I am on a learning spree. I am currently learning Rust, I am getting a little hands on with C++(I might create a game engine using C++), and I want to get into some other languages like JavaScript or TypeScript for server-side development(or whatever TypeScript is used for).

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).

So, to me, TypeScript would fit in my category of a language to learn. I don't want to dive into JavaScript due to its strong bonds with Web Development.

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?

You are viewing a single comment. View All
Answered by xxpertHacker [earned 5 cycles]
View Answer

TypeScript is just an extension of JavaScript, much like how C++ is an extension of C.

Should you learn it? Maybe. It could help clear up your code and prevent type confusion, and some libraries have started to choose it over regular JavaScript.

(I didn't know it at the time, but TypeScript was actually my first object-oriented language. It was used in Unity as one of the three major languages before C# took over.)

There are some other benefits, but if you know JS, learning TS takes minimal effort. You did mention that JS has strong bonds with web development, and you're not wrong, but there's plenty of other applications that it has. My advice would be to learn JS with a library such as Electron or Node and see if you like it. From there, move to TS if you feel so inclined.


ew unityscript

you truly are an og unity user
hats off to you! @SixBeeps