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.
@tradingbills41784 жыл бұрын
almost had to unsubscribe until the April Fools announcement made it ok
@joepotentier4 жыл бұрын
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
@dwhdai4 жыл бұрын
you got me
@grasstogains7564 жыл бұрын
Could you make a video about your thought on post graduate studies as a software engineer
@omarathon59224 жыл бұрын
I was so confused when you were saying "TypeScript is bad because it eliminates errors." lmao
@bobbycrosby97654 жыл бұрын
I know many C++ programmers that actually say things like this with a straight face.
@prashantsurti57884 жыл бұрын
@@bobbycrosby9765 they are right
@dand44854 жыл бұрын
@@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-qz9td3 жыл бұрын
Same, I was like WHAT?
@bawad4 жыл бұрын
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
@clem4 жыл бұрын
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?!
@RiversDelay4 жыл бұрын
@@clem sure is, ben is a big typescript enthusiast
@vinceramces4 жыл бұрын
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
@ericzorn37354 жыл бұрын
Your video got me too @Ben Awad
@suyash.014 жыл бұрын
@@clem He got you
@devrafed4 жыл бұрын
Finally a guy who shows the code instead of blabbering whats good and bad.
@irvinge46414 жыл бұрын
just make sure to put this at the top of every file and everything should work: /* tslint:disable */
@clem4 жыл бұрын
🤣
@krikuff4 жыл бұрын
First 1.5 minutes made me laugh a lot. Clem you are the best
@xpfe5zrm4 жыл бұрын
"Because JavaScript doesn't give a f..." those intentional cuts get me every time.
@yisroelarnson98814 жыл бұрын
Hahah me too! I had laughed so hard
@clem4 жыл бұрын
😎
@devguyahnaf4 жыл бұрын
I smashed my head on my keyboard hearing that.
@abdoutech68614 жыл бұрын
Lmaooooo this one killed me tooooo xDDDD
@curtisleow4 жыл бұрын
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=
@clem4 жыл бұрын
Thanks for the feedback; I had actually zoomed in already, but clearly not enough! I'll be sure to do it more next time!
@MrTaraskoro4 жыл бұрын
Junior JS Dev: "Why I'm seeing this unreadable error in console?" Senior JS Dev: kzbin.info/www/bejne/h33bqGBombuIqac
@clem4 жыл бұрын
Hahahahahaha 😂😂
@sarcasticdna4 жыл бұрын
Loll
@AllVid3 жыл бұрын
lol ; D
@sijandyola27914 жыл бұрын
I was going to defend TypeScript with my life after hearing what you said at the beginning. Well you fooled me.
@lorttexwolf4 жыл бұрын
Sijan Dyola Same I was about to go ham.
@celry53612 жыл бұрын
When you said you weren't a fan of TS I was actually smashing the like button lol
@alonsogonzalez19584 жыл бұрын
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!
@ponylucifel4 жыл бұрын
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!
@clem4 жыл бұрын
Mission accomplished; and agreed, that's an additional benefit! Awesome to hear that you subscribed! 💪
@Kawaiivee4 жыл бұрын
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
@animedreamz20092 жыл бұрын
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-p6q2 жыл бұрын
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
@sushipoo73 жыл бұрын
what is the IDE that is being used in this video ?
@jackwinterburn77034 жыл бұрын
Clément 5 months ago: "Redbull please sponsor me" Clément nowadays: Has 3 monster cans in the background 😂
@codeforest90274 жыл бұрын
Well thats because RedBull *didn't* sponsor him
@ZSonnenblick4 жыл бұрын
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
@bitwisedevs4694 жыл бұрын
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.
@mariuspurici90864 жыл бұрын
What technologies does algoexpert use on the backend?
@Chi_di4 жыл бұрын
Paused at 7:56 - the bug is that you didn’t dot into the data object to access the message property on line 9.
@MultiWillow333 жыл бұрын
Fun fact: I got this recommended almost exactly one year later. It still feels like being fooled on april fool's day.
@opentrail4 жыл бұрын
That's another great video Clem. Your so enthusiastic and explain stuff really well on all your videos. Impressive.
@KadduLivingstone3 жыл бұрын
I always love watching your videos when ever i feel discouraged
@serhiimamedov4 жыл бұрын
You can also use TS with nodejs. I'd say it's even more useful and easy to use on backend
@Metruzanca4 жыл бұрын
The true april fools is when at 10:19 you say google and my android is like "I'm listening, whats up?"
@micromir44 жыл бұрын
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 Жыл бұрын
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
@chrispeng55024 жыл бұрын
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.
@aussieexpat4 жыл бұрын
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?
@chrispeng55024 жыл бұрын
@@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.
@Btc314btc4 жыл бұрын
How about a video explaining javascript frameworks like React and Angular and your experiences with them? Btw, im subscribed 👌🏼
@clem4 жыл бұрын
I'll try to do that! And awesome! 👌
@islandcave87383 жыл бұрын
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.
@alphacode54 жыл бұрын
I already watched this when you put it out, I'm watching again AND I FELL FOR IT AGAIN
@briandesign4 жыл бұрын
new to code, so have no idea what this is lol, but eventually will learn about it in the future
@braden-wong4 жыл бұрын
Love your positive energy! You definitely got me
@DavidKim21064 жыл бұрын
Just curious but what setup do you use for recording and editing your videos? Good video :)
@karnavdesai4774 жыл бұрын
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_Lucero4 жыл бұрын
just get shit done bro
@basarat4 жыл бұрын
The first step to learning TypeScript : learn JavaScript. How do you learn JavaScript? by using TypeScript 🌹
@CodewithChristheFreelancer Жыл бұрын
I think I finally understand the hype with Typescript after watching this. Good work!
@lyingcat90223 жыл бұрын
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!
@ilyesmilyesm25764 жыл бұрын
so informative and really well explained, you should create some coding tutorial man!
@dheerajbhavsar97694 жыл бұрын
After seeing that graph, I literally hit the subscribe button. Thanks for all the free content.
@geraldthomas13642 жыл бұрын
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?
@NicolaAmadio4 жыл бұрын
Have you had the chance to look at Blazor? The frontend framework that lets you use c# for the client.
@anna-ripley3 жыл бұрын
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 😊
@DioArsya3 жыл бұрын
I just cannot see the beauty of typescript code you wrote while using my phone to watch this beautiful video... thx....... :)
@Fcycfvyvvyvtfutg4 жыл бұрын
Finally I have a better understanding of typescript after coming across it so many times in articles/other videos
@Inspiredfingers4 жыл бұрын
3:22 do you mean there are no data types in JS? because there are 8 of them
@sourabhvaishnav82353 жыл бұрын
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.
@justinnoor49154 жыл бұрын
If you could start over you would’ve built AE with vanilla Typescript, or with a framework like Angular?
@gkarapeev4 жыл бұрын
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.
@darkogele4 жыл бұрын
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
@Vellutia4 жыл бұрын
I love Dart, would be easy to learn TypeScript to widen my skill on web development
@harispapadopoulos42954 жыл бұрын
Clement’s videos are the best! Can we get a setup/ desktop tour ?
@yangchun74584 жыл бұрын
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?
@justiceparis77413 жыл бұрын
Why dont they just go back to their clanky verbose java? For me java is a nightmare!
@Andrew-ez9ft4 жыл бұрын
Clement can you tell us what tech stack you use to make your applications?
@ttma10464 жыл бұрын
Been on Typescript and Angular for three years. Love it but dont understand how can “interfaces” extends “classes”.
@leeduhart1054 жыл бұрын
watched your Apr 1 video, and you twisted my arm, so I subscribed... Your awesome and I love your energy.
@kennyhendricks42934 жыл бұрын
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...
@aussieexpat4 жыл бұрын
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.
@MrLuke2554 жыл бұрын
Is this TypeScript video some kind of a try at YT-SEO? Very dense with TypeScript keyword for sure.
@vinaynair19114 жыл бұрын
Sir where did you learn to use typescript with react and especially with redux?
@Sam-818104 жыл бұрын
wow! This is the best explanation of TypeScript I've seen. Thank you for this.
@BabyYoda55553 жыл бұрын
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
@RaghuprasaadIyer4 жыл бұрын
can someone tell me which font is this
@nurseitkalbaev4 жыл бұрын
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😁
@xukaden91444 жыл бұрын
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
@clem4 жыл бұрын
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_code4 жыл бұрын
@@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
@xukaden91444 жыл бұрын
Clément Mihailescu thanks man for the value you’re bringing to me! I will try hard on those things first. Keep following you!
@papaburger4 жыл бұрын
Can we use node.js stuff with TypeScript ?
@raymondsutton63484 жыл бұрын
Do you ever use Django?
@clem4 жыл бұрын
I've never used it.
@raymondsutton63484 жыл бұрын
Clément Mihailescu it’s a super powerful web framework. You should definitely give it a look 😌
@Israel2205004 жыл бұрын
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.
@abhaytiwari64114 жыл бұрын
In Lockdown period. i am watching your video it's realy helpfull clem
@NealMiskinMusic4 жыл бұрын
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."
@nikilk3 жыл бұрын
@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.
@ben72263 жыл бұрын
you are amazing dude !!! you really deserve a sub 😉
@emersonjjsouza2 жыл бұрын
nice arguments about the use of Typescript nowadays. keep going with this nice job.
@aleximre31102 жыл бұрын
Really useful vid! I now get Typescript! Thanks :)
@aussieexpat4 жыл бұрын
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?
@luk70613 жыл бұрын
So is it kinda like SCSS but just for JavaScript?
@shaigrustamov51152 жыл бұрын
Today on an April day I watched the video and found it great. Very very well explained. Thanks :)
@mrg39214 жыл бұрын
One of the few guys who do their job 100%! Excellent work & very usefull information! Thank you!
@aussieexpat4 жыл бұрын
What happens when the response is missing the message? In production, like a response from an api endpoint.
@manojkumar-jt3fw2 жыл бұрын
If I want to start learning Type script, where should I start?
@DonPaul4 жыл бұрын
OMG, my Google internship will be based on TypeScript!!
@I_Love_Lord3 жыл бұрын
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
@aiwithrudiyt4 жыл бұрын
Amazing video Clem. Doing it today! Question: why didn’t you build ALGOEXPERT up using typescript from the beginning?
@thegreatprogrammer59373 жыл бұрын
7:54 Yup! I catched the bug: it should be response.data.message instead of response.message
@evanmcclure38574 жыл бұрын
Clement, what feature of JavaScript do you think is really important to know, but largely misunderstood or not used at all?
@atomic76804 жыл бұрын
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
@cabejackson75184 жыл бұрын
Nice video! Thanks for the intro to typescript 😄
@jaytran2472 жыл бұрын
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 !!!
@techies1103 жыл бұрын
10:07 react is not a framework its a javascript library , but this video is amazing...
@tarunkishore45744 жыл бұрын
Should I stop learning node.js and go for typescript or complete the backend and start typescript 😥
@marcyvillegas54432 жыл бұрын
This is an old video but thanks clement for persuading me to study typescript!
@bot_matrix2 жыл бұрын
ok you got me. liked and subscribed! Love the channel Clement. Will buy AlgoExpert Web Development package soon!
@mhmd251773 жыл бұрын
This is the best video that describes the TS and it's power :-)
@smaranh4 жыл бұрын
How does one have readability in TypeScript or any programming language?
@jamalmohamad85763 жыл бұрын
Clément Mihailescu can you please make a video with typescript nd vuejs?
@NightmareCrab3 жыл бұрын
i screamed in disbelief when you said it eliminates 90% of the bugs and thus THE FUN
@muhammadowais96614 жыл бұрын
How to use npm package on tsx?
@Adam-zg7cv3 жыл бұрын
What is the name of this editor or IDE?
@scottisitt3 жыл бұрын
Why can't JS just use string, int, and bool instead of band-aids like ES6 or TS?