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”
Thanks Ben! Explained the pros and cons really well 😊
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).
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?
Excellent explanation with clear examples. I see a future tutor in Ben Awad. Excellent! Well worth the time to watch this video…
me: c# and javascript
me: ez typescript
C# developers: bruh
auto completion is a very welldone feature of vsc for any language not just ts
OMG Walter Jr now is teaching code!
Java developers be like: uhmmm ok
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:40 This is not exclusive to typescript. vs code also does auto import for normal javascript. I am donig it right now.
I learned typescript to watch your tuts ^_^
Your profile pic makes you look fat lel.
Autocompletting imports can also happen with an ide or editor with plug-ins , seeing typedefs etc has nothing todo with typescript
Excellent, pedagogic and good examples. Thank you!
what's typescript?
20 years younger than me and 20 times better than me. 🙁
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 .
Time(JS + Debugging) >Time(TS)
Look for definitely typed and get the type definitions for Javascript libs without types. This repo grows from day to day.
But what if there comes an end to TS, do you know what work that is to delete all this TS garbage from projects
Intermediate at JavaScript here. Is it worth moving over and focusing on typcript? How similar is it to write?
Are you using a plugin? If so which one?
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.
7:24 – yikes! Messy render.
It would be better if you talked about typescript features more rather than your IDE feature and plugins.
Thanks so much for the great production quality and well prepared, excellent explanation. Developers need more videos of this level of quality.
Autocomplete is from vscode or typescript?