TypeScript vs JavaScript - Pros and Cons

preview_player
Показать описание
In recent months I finally got a chance to work on a pretty big project written entirely in TypeScript and I have some thoughts that I would like to share with you. In this video, I decided to share with you the pros and cons of using TypeScript instead of Vanilla JavaScript, keep in mind that these are my personal observations and I might be biased because I came to React Native from Swift and Kotlin, not from JavaScript 😉

Follow me on:
Рекомендации по теме
Комментарии
Автор

dude, you are amazing. keep up the good content!

dayumnson
Автор

I like type hinting and kind of strict type checks in development.
But for me working with JSDoc and Eslint feels better than using Typescript, especially for backend and packages.
But I also like more functional programming, just simple functions with a strict input and output, and use OOP not much.
Types is for me more for suggestions what is possible than I think it helps a lot to reduce bugs.
You don't check with the types in runtime and the real input in the system.
That is why I prefer to trust much more on tests, and work more design first, e.g. the test or the API with e.g. OpenAPI.
OpenAPI is for me then the source of types, and I generate interfaces from the OpenAPI so I receive hints in the codebase, for frontend and backend.

PieterWigboldus
Автор

Great channel Tom. One question from scraping data what is used for real time scraping in node. Is it Cron Job or something else.I follow tutorial but I did not understand. And do you have course s on udemy based on nodejs. Thanks

htcsaj
Автор

On a sidenote, jQuery veterans who have fought many hard-won JS wars and have sites that are now running in production would probably follow the the age-old software development principle of "If it isn't broke, don't fix it." and humming to the tune of "Just the Way You Are". Angular guys who are trained in TS since "childhood" could be sensing that stardom or playing the lead role is now within reach. While React beginners must now confront the unpleasant syntax of using TS with React, and are also torn between mastering TS or use the precious time to learn more relevant stuffs such as Framer Motion, React Query, Remotion, etc.

margo
Автор

I feel like the cons mentioned would apply to lots of other languages and are not specific to TS, super opinionated developers are also not a problem of a language but a common personality trait you can observe in the field, so yeah, for me the point seems to be that JS has no real advantage over TS and so the industry will shift to whatever is better and stops arguing eventually as it always has been 😂

beedeeuniko
Автор

I feel like the cons mentioned would apply to lots of other languages and are not specific to TS, super opinionated developers are also not a problem of a language but a common personality trait you can observe in the field, so yeah, for me the point seems to be that JS has no real advantage over TS and so the industry will shift to whatever is better and stops arguing eventually as it always has been 😂

beedeeuniko