All You Need To Know About TypeScript
Вставка
- Опубліковано 15 лип 2024
- Is TypeScript better than JavaScript? Does TypeScript work with React and Angular? Should you learn TypeScript? In this video, I cover everything you need to know about TypeScript.
AlgoExpert: www.algoexpert.io/clem
SystemsExpert: www.systemsexpert.io/clem
My LinkedIn: / clementmihailescu
My Instagram: / clement_mihailescu
My Twitter: / clemmihai
Prepping for coding interviews? Practice with 85 video explanations of popular interview questions and a full-fledged coding workspace on AlgoExpert: www.algoexpert.io (use "clem" promo code for a discount!) - Наука та технологія
😏
I was legit curious about the reasons and it was starting to make some sense somehow until you reminded me it was April Fools lol.
almost had to unsubscribe until the April Fools announcement made it ok
You got me. I was like "Why tf would he migrate his entire code base to TS when he hates it???" and then I looked at the date. TS is soooo much better to work with
you got me
Could you make a video about your thought on post graduate studies as a software engineer
I was so confused when you were saying "TypeScript is bad because it eliminates errors." lmao
I know many C++ programmers that actually say things like this with a straight face.
@@bobbycrosby9765 they are right
@@bobbycrosby9765 Might assert what kind of errors. Easy typos especially when variable/member names might be really close getting a type error is just what is needed at compile time. Easy to agree it isn't a magic silver bullet, any bit helps. My biggest reason i hated javascript for so lot was all the string assignments without any type checking...
Same, I was like WHAT?
Finally a guy who shows the code instead of blabbering whats good and bad.
Good effort Clément but you're going to have to try harder to convince me TypeScript is good, I'm not buying it.
1. TypeScript code is hard to read therefore hiding bugs
2. JavaScript has types too
3. TypeScript error messages are cryptic
4. TypeScript is a tax on your time
Not gonna lie, I legit thought this was a serious comment for the past hour. It just hit me that this is just a next-level April Fool's joke 🤦♂️But wait...this _is_ a joke right?!
@@clem sure is, ben is a big typescript enthusiast
I'm offended about this. ECMAScript is still the best programming language for the web.
1. Backwards compatibility.
2. Supports TC's proposal
3. Less bugs
4. More features than JavaScript
Your video got me too @Ben Awad
@@clem He got you
just make sure to put this at the top of every file and everything should work:
/* tslint:disable */
🤣
First 1.5 minutes made me laugh a lot. Clem you are the best
Hey Clément, I am an applied mathematician working at finance that programs in Python and R. I really like the content like this; though I'm not interested in applying to a tech company, I appreciate the input you give to the community. Keep it doing...for me to subscribe!
"Because JavaScript doesn't give a f..." those intentional cuts get me every time.
Hahah me too! I had laughed so hard
😎
I smashed my head on my keyboard hearing that.
Lmaooooo this one killed me tooooo xDDDD
So much fun, I try to understand the concept and the life changing brought by TS without needing to undergo actual coding because I just want to know how it is really different from a vanilla JS. You are the only one who showed to me what is TS in a nutshell in a very understandable to a strong typed PL programmer point of view.
I'm like 80 videos in deep to a React course and am at the debugging parts -- I'm also mid-way therough a MEAN stack course, and this video is giving me very good supplementary context for why typescript is great
That's another great video Clem. Your so enthusiastic and explain stuff really well on all your videos. Impressive.
I already watched this when you put it out, I'm watching again AND I FELL FOR IT AGAIN
I was going to defend TypeScript with my life after hearing what you said at the beginning. Well you fooled me.
Sijan Dyola Same I was about to go ham.
You were answering most of my questions real time as they popped in my mind. Great video.
Hey when you're showing us code, you should zoom in several times. A lot of times I'm watching UA-cam on my phone, or in a window to the side. Small text can be difficult to read in that format. You can zoom in on VS Code with command=
Thanks for the feedback; I had actually zoomed in already, but clearly not enough! I'll be sure to do it more next time!
Such an incredible good explanation! Fun, educational and to the point. I was trying to get through a very boring video on LinkedIn Learning about Typescript. This is much better! Thanks a lot, I've subscribed and look forward to watching more videos 😊
Clément 5 months ago:
"Redbull please sponsor me"
Clément nowadays:
Has 3 monster cans in the background 😂
Well thats because RedBull *didn't* sponsor him
Lol I thought your were serious at first and I was like wtf?😂
One other thing I like about typescript is that when used with frameworks like Angular, it serializes and deserializes custom objects pretty well. Cool video Clem! I finally subscribed!
Mission accomplished; and agreed, that's an additional benefit! Awesome to hear that you subscribed! 💪
Junior JS Dev: "Why I'm seeing this unreadable error in console?"
Senior JS Dev: ua-cam.com/video/QLxw-2dVUsE/v-deo.html
Hahahahahaha 😂😂
Loll
lol ; D
Finally I have a better understanding of typescript after coming across it so many times in articles/other videos
After seeing that graph, I literally hit the subscribe button. Thanks for all the free content.
Love your positive energy! You definitely got me
One of the few guys who do their job 100%! Excellent work & very usefull information! Thank you!
wow! This is the best explanation of TypeScript I've seen. Thank you for this.
Thanks for the Typescript demo Clem
Stay safe in NY my friend!!
Trying to!
I always love watching your videos when ever i feel discouraged
thanks I was leanring it and was feeling what is the big picuture of all this extra stuff I am doing. You're video really got me out fog and focus on the goal of why I am ading TS to my tools
Great video! You explain very well, very clear...straight forward.
so informative and really well explained, you should create some coding tutorial man!
Fun fact: I got this recommended almost exactly one year later. It still feels like being fooled on april fool's day.
I just cannot see the beauty of typescript code you wrote while using my phone to watch this beautiful video... thx....... :)
Not gonna lie, you had me in the first minute; credit to you keeping a good poker face.
"Reasons why I'm not a fan: Typescript basically eliminates 90% of bugs. It kind of takes away the challenge and the fun from coding" 😂 was so confused at first
You could put type checking and invalid type error handling on all your arguments at the beginning of every function, as well as branching for overloading different types, but that just clutters your code.
If you are the only person using your functions, you could make sure you only pass the right types of arguments, and just rely on fixing runtime bugs, can work ok if those bugs appear early in the runtime progress. Not the best, but can work ok, and I've been using that.
Been thinking about migrating to typescript.
Clement’s videos are the best! Can we get a setup/ desktop tour ?
I want to thank you so much for making this video and I tell that I really enjoy that I like this video of yours pretty much in many ways.
- You have a very interesting introduction about typescript that I would say that make it so unique.
- You have presented and answered most of the questions for guys that first hit themself with typescript like me.
- I really like your way and gestures while explaining thing that make me laugh so much lol.
Thanks again. Great Job !!!
Lol glad you’re okay. I was wondering why you hadn’t put out a new video yet. Stay safe man.
new to code, so have no idea what this is lol, but eventually will learn about it in the future
This is very helpful in understanding the value of adding Typescript to a development toolset. I would have bumped up the font size a couple of notches. Edit: I just configured Accessibility preferences in Mac to provide Zoom using scroll gesture plus control key modifier. Yay.
In Lockdown period.
i am watching your video
it's realy helpfull clem
I love Dart, would be easy to learn TypeScript to widen my skill on web development
I really like this kind of video. I was already sub, I'm going to activate the bell. More video like this would be appreciated!
Really cool video! That's so great you combine jokes and really useful stuff! That what makes it so interesting to watch every time. What do you think about "unknown" vs "any" by the way? Are there any cases when "any" is better in your opinion?
Nice video! Thanks for the intro to typescript 😄
watched your Apr 1 video, and you twisted my arm, so I subscribed... Your awesome and I love your energy.
How about a video explaining javascript frameworks like React and Angular and your experiences with them? Btw, im subscribed 👌🏼
I'll try to do that! And awesome! 👌
Today on an April day I watched the video and found it great. Very very well explained. Thanks :)
thnx Clement.
the reason people aren't subscribing to your channel is probably because your channel IS NOT a tutorial channel like traversy media or mycodeschool. I think if you put more tutorial videos that give specific knowledge in algorithms and technologies, then you'll see a surge in subscriptions
I really like your style, thanks for sharing your knowledge.
This is an old video but thanks clement for persuading me to study typescript!
This has to be the funniest video that I have seen so far of Clément.
You can also use TS with nodejs.
I'd say it's even more useful and easy to use on backend
Really useful vid! I now get Typescript! Thanks :)
Loved this thanks a lot!
You got me bro!
Subscribed!
Thank you dear for sharing your knowledge.
I think I finally understand the hype with Typescript after watching this. Good work!
Finally! an amazing explanation!
The true april fools is when at 10:19 you say google and my android is like "I'm listening, whats up?"
love your presentation style :)
This is the best video that describes the TS and it's power :-)
When you said you weren't a fan of TS I was actually smashing the like button lol
Hi, Buddy I truly fell for your April fool trick!😁I loved the way you explained everything! I hope to beat you and Ben Awad in Typescript friendly challenge someday!
Great great vid! Loved it!
Thanks for your effort
Amazing video Clem. Doing it today! Question: why didn’t you build ALGOEXPERT up using typescript from the beginning?
Your expertise in the stuff, experience with tech giants like google and facebook, it's all visible in the way you speak. That confidence comes along.
Your videos are awesome. I've been watching them without subscribing. I did today.
Not even a front-end engineer, but you've convinced me to hop into the Typescript pool.
At it’s core, typing is free unit test for your codebases. None of the bugs would happen if you wrote unit tests. The thing is, when a team is not bothering with unit testing the shit out of their code, they generally don’t give a fuck about their typing. I have seen many typescript filled with any, many java code filled with map and angry casting.
Funny how typescript truly helps a team that has already unit testing since it frees them from many tedious coding, but make a lot of noises at the hands of team that doesn’t care in the first place.
But... those type problems can still happen in prod (because it's still just javascript at runtime). But now you no longer have unit tests covering those areas?
@@aussieexpat No those problems won't happen in production because you've already fixed it. And typescript will not cover you in production because it just translates your code into normal javascript.
I'd really like to know more about naming conventions for types and interfaces and file structure for React + Redux + Typescript projects
Subscribed, excellent comparison of JS and TS
Thx Clement for this video. Helped me out because I'm learning to use JavaScript with my Flask Webpage. Can you make a video about CoffeeScript and how you made the homepage animations of AlgoExpert. Thank you for your convenience. :D
5:44 made me literally lol
OMG, my Google internship will be based on TypeScript!!
awesome explanation! thanks man.
You have an amazing portfolio. Can you make a video on how to stop procrastinating and get stuff done? Coz that's one thing that is pulling me down a lot
just get shit done bro
ok you got me. liked and subscribed! Love the channel Clement. Will buy AlgoExpert Web Development package soon!
awesome video! Make more like this one. Subbed!
You got me !!!. Now I'm gonna smash the like button twice
Best Explaination on youtube!!!
nice arguments about the use of Typescript nowadays. keep going with this nice job.
Bro, Im not going to lie. You got me at first. I was like 'finding bugs before runtime? sounds chill.' then you said something about challenging yourslef as a developer and I swear to the almighty I heard David Goggins calling laughing at me and calling me weak on the back of my mind.. thanks man this video helped me a great deal. take love
I'm proud of myself I just started learning programming and was able to spot the bug.
Take this cookie
you are amazing dude !!!
you really deserve a sub 😉
If you like Ts that much just try C# is made from the same person :) Also for frontend devs now you can use it with webassembly
You really did get me. I couldn’t believe what I was hearing...
just subscribed. thanks for instructions :)
From the get-go I knew you were messing around, it is impossible to not like TypeScript. It is hands down the best practice guys and gals...
I dislike typescript. Everything you have to do for typescript is more verbose and really the worst part of programming. And your unit tests need to cover typing issues anyway because in production, typescript is just javascript so all the same bugs apply with respect to unexpected data.
i love you so much clément. i look up to you.
I think I was that person when Clement said 80% of people !!! , 80%!!!! who watches his videos are not subscribed, and I decided to smash that red button😁
I just watched one video and subscribed right away after you fooled me
Paused at 7:56 - the bug is that you didn’t dot into the data object to access the message property on line 9.
Boom. Great video!
you really got me i was so confused
thank you for this beautiful video
1:40 you could be right :) But if you like eliminating bugs and runtime errors than Elm has to be up there with the best thing to happen to Frontend!
Whoa...ok ok...Subscribed...there you go!!
Big Fan Clement!
definitely convinced
Damn. Just started learning Javascript, I was scratching my head about these exact issues. I figured I'm just being a noob and not understanding, but something about it seemed like a fundamental problem/weakness of Javascript. I feel validated after learning about the existence of Typescript. =)