Why Learn TypeScript (vs JavaScript)?

preview_player
Показать описание
Are you wondering what the fuss is about TypeScript? And whether it is worth investing time and energy? Or whether to use it in your project?

If so you’ve come to the right place.

Allow me to tell you the story of how I was frustrated trying to learn JavaScript. I tried and failed. Coming into an existing codebase, trying to follow what was going on across lines and lines of poorly documented code… it was frustrating. But in the end, I was able to learn JavaScript… by first learning TypeScript. And I found TypeScript way more fun to use than JavaScript.

And in a way, that’s strange.

Because TypeScript, in a sense, is a load of constraints. It limits what you can do. It forces you to follow rules that are added on top of JavaScript.

And somehow, that makes TypeScript fun. Let's see how.

#typescript #javascript #development
Рекомендации по теме
Комментарии
Автор

I'm beyond confused why this channel has only 6xx subscribers. Fantastic content, great production value, and interesting topics. One thing that would be nice to see is maybe more examples (code snippets, etc). Thanks for the great content - you have a new subscriber today!

jjrise
Автор

Nice video! I put a lot of time effort and frustration into understanding JavaScript and its dynamic types, but as a result I feel like I have a much deeper understanding for the code I write as I always have that consideration. Sure I am new-ish, and I am not dealing with a high degree of complexity, but I cant help but feel like not understanding whats going on behind the scenes with my code would have left me with a far more shallow understanding. I have watched a few of your videos though and they have been highly informative. Subbed!

martynclarke
Автор

I am so glad you mention the real reason - developer experience. I've don't necessarily think magically Typescript reduces the amount of bugs (outside typing bugs of course)

SamuelKarani
Автор

Your script writing is amazing... it goes deep in the mind about the topic

Lots of love from india

Dharmic_developer
Автор

I am your 540th subscriber. Great content. Happy to be onboard.

green_universe
Автор

It's became necessary in any JavaScript project, as you said it will force you to manage the strange behavior of JS variables in your code editor. This is supposed to be of type X, here you pass a value of type Y, take this into account, so it won't compile until you do that. Nice video 👌

hsider
Автор

Hand rolling TS isn't necessary anymore. All you need is this npm package and JS gain's type annotation effortlessly: "npm i derive-type"

everythingisfine
Автор

Because nobody uses JS on job. All work done in TS. Plain and simle.

kishirisu
Автор

once you learn typescript you won't think about using JS anymore

kuroisan