Typescript vs Javascript




Learn what the pros and cons of Typescript are to help you decide whether you should use it or stick to javascript.

#typescript #javascript
—-
Checkout my side projects:

If you’re into cooking: https://www.mysaffronapp.com/

If you like World of Warcraft: https://www.classicwowbuilds.com/

—-
Join the Discord: https://discord.gg/Vehs99V

—-
Patreon: https://www.patreon.com/benawad

—-
Follow Me Online Here:

Twitch: https://www.twitch.tv/benawad
Medium: https://medium.com/@benawad
GitHub: https://github.com/benawad
Facebook: https://www.facebook.com/benawad97/
LinkedIn: https://www.linkedin.com/in/benawad/
Instagram: http://instagram.com/benawad97
Twitter: https://twitter.com/benawad

Original source


28 responses to “Typescript vs Javascript”

  1. Noob question: a week ago, I didn't know what HTML stood for. I started to self-teach and wrote my first (assisted via Codecademy) HTML yesterday. So my question is when I'm confident with HTML and CSS, do I need to learn Javascripting it I already see the advantage of textscript (from your video) without actually understanding the semantics and syntax you were explaining (if that makes sense).

  2. Doesn't any good JS IDE like Webstorm do all that for you with just plain old JS? If you're after a tightly typed language why not just use Java vs trying to turn JS into something it's not?

  3. missing con: typescript adds complexity and limit your human resource. I think the best decision is to keep it simple!
    Some times devs have too much time to spare and start to come up with strange ideas to solve a broken laguage.

    If you want to be strict, just start learning Rust to be ahead of the wasm revolution.

  4. 1. Great video !
    2. But ! Of course there's a but 🙂
    The many pros you mentioned are alse available in vanilla ES. We just have to write clean code.
    Even while using strict and clean code the auto import on VSCode works much better.
    3. I admit i'm lazy sometimes or in a hurry an take the easy way… which is not possible in a static language (while writing poor code still is)

    Really would like to know what you think about that .

  5. A couple of things. Not saying TS isn't worth it, but some of your "beautifulness" is standard for either language. Code import completion is standard for both languages with the VS Code extension Auto Import. The "autocomplete" for parameters/ types etc. is actually also standard for both languages (see Intellisense), but seems more applicable because of TypeScript's complexity. In other words, working with TypeScript, the Intellisense is nicer to have, because it simplifies using TypeScript a good bit. Granted, seeing the type needed is a plus, when building out the code. But, that's the only advantage with TS in code completion. Again, not saying not go with TypeScript, especially with larger apps, but some of the beautifulness you mention can be had with JavaScript too.

Leave a Reply