All You Need To Know About TypeScript

  Рет қаралды 227,505

Clément Mihailescu

Clément Mihailescu

Күн бұрын

Пікірлер: 650
@clem
@clem 4 жыл бұрын
😏
@user-do5iq7hk7g
@user-do5iq7hk7g 4 жыл бұрын
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.
@tradingbills4178
@tradingbills4178 4 жыл бұрын
almost had to unsubscribe until the April Fools announcement made it ok
@joepotentier
@joepotentier 4 жыл бұрын
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
@dwhdai
@dwhdai 4 жыл бұрын
you got me
@grasstogains756
@grasstogains756 4 жыл бұрын
Could you make a video about your thought on post graduate studies as a software engineer
@omarathon5922
@omarathon5922 4 жыл бұрын
I was so confused when you were saying "TypeScript is bad because it eliminates errors." lmao
@bobbycrosby9765
@bobbycrosby9765 4 жыл бұрын
I know many C++ programmers that actually say things like this with a straight face.
@prashantsurti5788
@prashantsurti5788 4 жыл бұрын
@@bobbycrosby9765 they are right
@dand4485
@dand4485 4 жыл бұрын
@@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...
@Jonathan-qz9td
@Jonathan-qz9td 3 жыл бұрын
Same, I was like WHAT?
@bawad
@bawad 4 жыл бұрын
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
@clem
@clem 4 жыл бұрын
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?!
@RiversDelay
@RiversDelay 4 жыл бұрын
@@clem sure is, ben is a big typescript enthusiast
@vinceramces
@vinceramces 4 жыл бұрын
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
@ericzorn3735
@ericzorn3735 4 жыл бұрын
Your video got me too @Ben Awad
@suyash.01
@suyash.01 4 жыл бұрын
@@clem He got you
@devrafed
@devrafed 4 жыл бұрын
Finally a guy who shows the code instead of blabbering whats good and bad.
@irvinge4641
@irvinge4641 4 жыл бұрын
just make sure to put this at the top of every file and everything should work: /* tslint:disable */
@clem
@clem 4 жыл бұрын
🤣
@krikuff
@krikuff 4 жыл бұрын
First 1.5 minutes made me laugh a lot. Clem you are the best
@xpfe5zrm
@xpfe5zrm 4 жыл бұрын
"Because JavaScript doesn't give a f..." those intentional cuts get me every time.
@yisroelarnson9881
@yisroelarnson9881 4 жыл бұрын
Hahah me too! I had laughed so hard
@clem
@clem 4 жыл бұрын
😎
@devguyahnaf
@devguyahnaf 4 жыл бұрын
I smashed my head on my keyboard hearing that.
@abdoutech6861
@abdoutech6861 4 жыл бұрын
Lmaooooo this one killed me tooooo xDDDD
@curtisleow
@curtisleow 4 жыл бұрын
Hey when you're showing us code, you should zoom in several times. A lot of times I'm watching KZbin 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=
@clem
@clem 4 жыл бұрын
Thanks for the feedback; I had actually zoomed in already, but clearly not enough! I'll be sure to do it more next time!
@MrTaraskoro
@MrTaraskoro 4 жыл бұрын
Junior JS Dev: "Why I'm seeing this unreadable error in console?" Senior JS Dev: kzbin.info/www/bejne/h33bqGBombuIqac
@clem
@clem 4 жыл бұрын
Hahahahahaha 😂😂
@sarcasticdna
@sarcasticdna 4 жыл бұрын
Loll
@AllVid
@AllVid 3 жыл бұрын
lol ; D
@sijandyola2791
@sijandyola2791 4 жыл бұрын
I was going to defend TypeScript with my life after hearing what you said at the beginning. Well you fooled me.
@lorttexwolf
@lorttexwolf 4 жыл бұрын
Sijan Dyola Same I was about to go ham.
@celry5361
@celry5361 2 жыл бұрын
When you said you weren't a fan of TS I was actually smashing the like button lol
@alonsogonzalez1958
@alonsogonzalez1958 4 жыл бұрын
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!
@ponylucifel
@ponylucifel 4 жыл бұрын
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!
@clem
@clem 4 жыл бұрын
Mission accomplished; and agreed, that's an additional benefit! Awesome to hear that you subscribed! 💪
@Kawaiivee
@Kawaiivee 4 жыл бұрын
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
@animedreamz2009
@animedreamz2009 2 жыл бұрын
What happened to the whole functional paradigm push? Now every js dev wants types lol it was probably a bunch of C# folks who wanted the familiar types to make the transition to js easier.
@CMT-p6q
@CMT-p6q 2 жыл бұрын
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
@sushipoo7
@sushipoo7 3 жыл бұрын
what is the IDE that is being used in this video ?
@jackwinterburn7703
@jackwinterburn7703 4 жыл бұрын
Clément 5 months ago: "Redbull please sponsor me" Clément nowadays: Has 3 monster cans in the background 😂
@codeforest9027
@codeforest9027 4 жыл бұрын
Well thats because RedBull *didn't* sponsor him
@ZSonnenblick
@ZSonnenblick 4 жыл бұрын
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
@bitwisedevs469
@bitwisedevs469 4 жыл бұрын
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.
@mariuspurici9086
@mariuspurici9086 4 жыл бұрын
What technologies does algoexpert use on the backend?
@Chi_di
@Chi_di 4 жыл бұрын
Paused at 7:56 - the bug is that you didn’t dot into the data object to access the message property on line 9.
@MultiWillow33
@MultiWillow33 3 жыл бұрын
Fun fact: I got this recommended almost exactly one year later. It still feels like being fooled on april fool's day.
@opentrail
@opentrail 4 жыл бұрын
That's another great video Clem. Your so enthusiastic and explain stuff really well on all your videos. Impressive.
@KadduLivingstone
@KadduLivingstone 3 жыл бұрын
I always love watching your videos when ever i feel discouraged
@serhiimamedov
@serhiimamedov 4 жыл бұрын
You can also use TS with nodejs. I'd say it's even more useful and easy to use on backend
@Metruzanca
@Metruzanca 4 жыл бұрын
The true april fools is when at 10:19 you say google and my android is like "I'm listening, whats up?"
@micromir4
@micromir4 4 жыл бұрын
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
@firststrandtypename1866
@firststrandtypename1866 Жыл бұрын
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
@chrispeng5502
@chrispeng5502 4 жыл бұрын
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.
@aussieexpat
@aussieexpat 4 жыл бұрын
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?
@chrispeng5502
@chrispeng5502 4 жыл бұрын
@@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.
@Btc314btc
@Btc314btc 4 жыл бұрын
How about a video explaining javascript frameworks like React and Angular and your experiences with them? Btw, im subscribed 👌🏼
@clem
@clem 4 жыл бұрын
I'll try to do that! And awesome! 👌
@islandcave8738
@islandcave8738 3 жыл бұрын
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.
@alphacode5
@alphacode5 4 жыл бұрын
I already watched this when you put it out, I'm watching again AND I FELL FOR IT AGAIN
@briandesign
@briandesign 4 жыл бұрын
new to code, so have no idea what this is lol, but eventually will learn about it in the future
@braden-wong
@braden-wong 4 жыл бұрын
Love your positive energy! You definitely got me
@DavidKim2106
@DavidKim2106 4 жыл бұрын
Just curious but what setup do you use for recording and editing your videos? Good video :)
@karnavdesai477
@karnavdesai477 4 жыл бұрын
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
@Jason_Lucero
@Jason_Lucero 4 жыл бұрын
just get shit done bro
@basarat
@basarat 4 жыл бұрын
The first step to learning TypeScript : learn JavaScript. How do you learn JavaScript? by using TypeScript 🌹
@CodewithChristheFreelancer
@CodewithChristheFreelancer Жыл бұрын
I think I finally understand the hype with Typescript after watching this. Good work!
@lyingcat9022
@lyingcat9022 3 жыл бұрын
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!
@ilyesmilyesm2576
@ilyesmilyesm2576 4 жыл бұрын
so informative and really well explained, you should create some coding tutorial man!
@dheerajbhavsar9769
@dheerajbhavsar9769 4 жыл бұрын
After seeing that graph, I literally hit the subscribe button. Thanks for all the free content.
@geraldthomas1364
@geraldthomas1364 2 жыл бұрын
TS vs JS...hmm...I think there's a cost/benefit analysis that needs to be done & the overall metric to focus on is can you debug your JS error faster than you'd write the extra code in TS?
@NicolaAmadio
@NicolaAmadio 4 жыл бұрын
Have you had the chance to look at Blazor? The frontend framework that lets you use c# for the client.
@anna-ripley
@anna-ripley 3 жыл бұрын
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 😊
@DioArsya
@DioArsya 3 жыл бұрын
I just cannot see the beauty of typescript code you wrote while using my phone to watch this beautiful video... thx....... :)
@Fcycfvyvvyvtfutg
@Fcycfvyvvyvtfutg 4 жыл бұрын
Finally I have a better understanding of typescript after coming across it so many times in articles/other videos
@Inspiredfingers
@Inspiredfingers 4 жыл бұрын
3:22 do you mean there are no data types in JS? because there are 8 of them
@sourabhvaishnav8235
@sourabhvaishnav8235 3 жыл бұрын
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.
@justinnoor4915
@justinnoor4915 4 жыл бұрын
If you could start over you would’ve built AE with vanilla Typescript, or with a framework like Angular?
@gkarapeev
@gkarapeev 4 жыл бұрын
I recently checked my stats and made the observation that 90% of the videos I watch mention that they've recently checked their stats and they've made the observation that 90% of people who watch them are not subscribed.
@darkogele
@darkogele 4 жыл бұрын
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
@Vellutia
@Vellutia 4 жыл бұрын
I love Dart, would be easy to learn TypeScript to widen my skill on web development
@harispapadopoulos4295
@harispapadopoulos4295 4 жыл бұрын
Clement’s videos are the best! Can we get a setup/ desktop tour ?
@yangchun7458
@yangchun7458 4 жыл бұрын
One question, if you want to use language with types to prevent potential bugs then why not use a language that already has types system in its design. Why we use a language that doesn’t have type system and put a substitute on it to makes it looks like have types?
@justiceparis7741
@justiceparis7741 3 жыл бұрын
Why dont they just go back to their clanky verbose java? For me java is a nightmare!
@Andrew-ez9ft
@Andrew-ez9ft 4 жыл бұрын
Clement can you tell us what tech stack you use to make your applications?
@ttma1046
@ttma1046 4 жыл бұрын
Been on Typescript and Angular for three years. Love it but dont understand how can “interfaces” extends “classes”.
@leeduhart105
@leeduhart105 4 жыл бұрын
watched your Apr 1 video, and you twisted my arm, so I subscribed... Your awesome and I love your energy.
@kennyhendricks4293
@kennyhendricks4293 4 жыл бұрын
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...
@aussieexpat
@aussieexpat 4 жыл бұрын
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.
@MrLuke255
@MrLuke255 4 жыл бұрын
Is this TypeScript video some kind of a try at YT-SEO? Very dense with TypeScript keyword for sure.
@vinaynair1911
@vinaynair1911 4 жыл бұрын
Sir where did you learn to use typescript with react and especially with redux?
@Sam-81810
@Sam-81810 4 жыл бұрын
wow! This is the best explanation of TypeScript I've seen. Thank you for this.
@BabyYoda5555
@BabyYoda5555 3 жыл бұрын
Is there a way to automatically compile Typescript code in vscode? I installed an extension but it didn’t do anything and I HATE having to run npm run build every time I make a small little change
@RaghuprasaadIyer
@RaghuprasaadIyer 4 жыл бұрын
can someone tell me which font is this
@nurseitkalbaev
@nurseitkalbaev 4 жыл бұрын
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😁
@xukaden9144
@xukaden9144 4 жыл бұрын
Hey man what value and advice can you give to a 2 months coder beginner, who is college student, attempting to get internship at FANG company later on
@clem
@clem 4 жыл бұрын
Become really good at one language (JavaScript/Python/C++/Java/Go). Build a couple of cool software engineering projects. Reach out to recruiters at the FANG companies you're interested in on LinkedIn. Prepare for your coding interviews using www.algoexpert.io/clem. Profit.
@sabre_code
@sabre_code 4 жыл бұрын
@@clem i have learnt C language is it worth spending time in learning C++, I wanted to start with python. Please reply. Is it possible to contact you other than youtube. I might need a lot of advices in future. Seriously
@xukaden9144
@xukaden9144 4 жыл бұрын
Clément Mihailescu thanks man for the value you’re bringing to me! I will try hard on those things first. Keep following you!
@papaburger
@papaburger 4 жыл бұрын
Can we use node.js stuff with TypeScript ?
@raymondsutton6348
@raymondsutton6348 4 жыл бұрын
Do you ever use Django?
@clem
@clem 4 жыл бұрын
I've never used it.
@raymondsutton6348
@raymondsutton6348 4 жыл бұрын
Clément Mihailescu it’s a super powerful web framework. You should definitely give it a look 😌
@Israel220500
@Israel220500 4 жыл бұрын
3:10 Well, I came from Python and I'm quite familiar with types. Python is not statically typed but it's still strongly typed.
@abhaytiwari6411
@abhaytiwari6411 4 жыл бұрын
In Lockdown period. i am watching your video it's realy helpfull clem
@NealMiskinMusic
@NealMiskinMusic 4 жыл бұрын
It seems ironic to me that the languages that have strict type systems always look for ways to soften the type requirements, but the languages with soft typing end up needing firmer type requirements. Microsoft was like "JavaScript needs stronger types, we're building a whole new language superset", while the C++ committee was like "we're gonna, expand templates, add more overloading, create std::auto, and std::any types, and most recently concepts to the language, so that our strong type system is easier to work with."
@nikilk
@nikilk 3 жыл бұрын
@Clément Mihailescu your code window looked hard to read as the fonts were pretty small. I was watching this on my phone and I had to squint to read the code. Perhaps increase the font size or drop your code screens resolution so the code fills up more portions of the screen ? I’m a huge TS fan myself.
@ben7226
@ben7226 3 жыл бұрын
you are amazing dude !!! you really deserve a sub 😉
@emersonjjsouza
@emersonjjsouza 2 жыл бұрын
nice arguments about the use of Typescript nowadays. keep going with this nice job.
@aleximre3110
@aleximre3110 2 жыл бұрын
Really useful vid! I now get Typescript! Thanks :)
@aussieexpat
@aussieexpat 4 жыл бұрын
It does static analysis for type errors. It doesn't really add types to javascript. I mean, what's the difference? Well, TypeScript will still suck down the same "bad bugs in production" but with the aesthetics of having no such problem. I'm pretty sure any other static analysis tool will find the same errors (and much more). And for the most part unit tests will cover JS for such type issues. But if you're in typescript why would you have unit tests about getting the wrong type? Because it could happen in production anyway... So does typescript solve much if you 1. have a static analysis tool 2. have 100% unit test coverage and good tests?
@luk7061
@luk7061 3 жыл бұрын
So is it kinda like SCSS but just for JavaScript?
@shaigrustamov5115
@shaigrustamov5115 2 жыл бұрын
Today on an April day I watched the video and found it great. Very very well explained. Thanks :)
@mrg3921
@mrg3921 4 жыл бұрын
One of the few guys who do their job 100%! Excellent work & very usefull information! Thank you!
@aussieexpat
@aussieexpat 4 жыл бұрын
What happens when the response is missing the message? In production, like a response from an api endpoint.
@manojkumar-jt3fw
@manojkumar-jt3fw 2 жыл бұрын
If I want to start learning Type script, where should I start?
@DonPaul
@DonPaul 4 жыл бұрын
OMG, my Google internship will be based on TypeScript!!
@I_Love_Lord
@I_Love_Lord 3 жыл бұрын
Oh me god. Yes Clément, you got me. I 95 % read first few comments before watching the video, but this time there was a magic spell on the video. Even though video was an year old, I watched it without reading comments, and I fell for the joke :D
@aiwithrudiyt
@aiwithrudiyt 4 жыл бұрын
Amazing video Clem. Doing it today! Question: why didn’t you build ALGOEXPERT up using typescript from the beginning?
@thegreatprogrammer5937
@thegreatprogrammer5937 3 жыл бұрын
7:54 Yup! I catched the bug: it should be response.data.message instead of response.message
@evanmcclure3857
@evanmcclure3857 4 жыл бұрын
Clement, what feature of JavaScript do you think is really important to know, but largely misunderstood or not used at all?
@atomic7680
@atomic7680 4 жыл бұрын
I have been out of webdevelopment for a bit. Does TypeScript still have to be transpiled first? Because one of the downsides for me, was the awful lot of configuration and additional npm packages needed to simply deploy
@cabejackson7518
@cabejackson7518 4 жыл бұрын
Nice video! Thanks for the intro to typescript 😄
@jaytran247
@jaytran247 2 жыл бұрын
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 !!!
@techies110
@techies110 3 жыл бұрын
10:07 react is not a framework its a javascript library , but this video is amazing...
@tarunkishore4574
@tarunkishore4574 4 жыл бұрын
Should I stop learning node.js and go for typescript or complete the backend and start typescript 😥
@marcyvillegas5443
@marcyvillegas5443 2 жыл бұрын
This is an old video but thanks clement for persuading me to study typescript!
@bot_matrix
@bot_matrix 2 жыл бұрын
ok you got me. liked and subscribed! Love the channel Clement. Will buy AlgoExpert Web Development package soon!
@mhmd25177
@mhmd25177 3 жыл бұрын
This is the best video that describes the TS and it's power :-)
@smaranh
@smaranh 4 жыл бұрын
How does one have readability in TypeScript or any programming language?
@jamalmohamad8576
@jamalmohamad8576 3 жыл бұрын
Clément Mihailescu can you please make a video with typescript nd vuejs?
@NightmareCrab
@NightmareCrab 3 жыл бұрын
i screamed in disbelief when you said it eliminates 90% of the bugs and thus THE FUN
@muhammadowais9661
@muhammadowais9661 4 жыл бұрын
How to use npm package on tsx?
@Adam-zg7cv
@Adam-zg7cv 3 жыл бұрын
What is the name of this editor or IDE?
@scottisitt
@scottisitt 3 жыл бұрын
Why can't JS just use string, int, and bool instead of band-aids like ES6 or TS?
All You Need To Know About Frontend Engineering (Web Development)
14:18
Clément Mihailescu
Рет қаралды 172 М.
TypeScript - The Basics
12:01
Fireship
Рет қаралды 1,5 МЛН
Thank you mommy 😊💝 #shorts
0:24
5-Minute Crafts HOUSE
Рет қаралды 33 МЛН
24 Часа в БОУЛИНГЕ !
27:03
A4
Рет қаралды 7 МЛН
Why use Type and not Interface in TypeScript
14:12
ByteGrad
Рет қаралды 219 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 878 М.
How Did I Not Know This TypeScript Trick Earlier??!
9:11
Josh tried coding
Рет қаралды 218 М.
All You Need To Know About Backend Engineering
15:14
Clément Mihailescu
Рет қаралды 209 М.
TypeScript Tutorial for Beginners
1:04:28
Programming with Mosh
Рет қаралды 1,4 МЛН
The Right way to write Nest.js & Typescript clean-code - SOLID
17:55
How We Built AlgoExpert's Front End (building a web application)
10:16
Clément Mihailescu
Рет қаралды 295 М.
How To Learn Fast And Efficiently (as a software engineer)
11:49
Clément Mihailescu
Рет қаралды 329 М.