TypeScript Generics are EASY once you know this

  Рет қаралды 146,467

ByteGrad

ByteGrad

Күн бұрын

Пікірлер: 215
@Bread-vk8fl
@Bread-vk8fl 5 ай бұрын
1st time I watched it I got 80%, the 2nd time 95%. Now I just need to code myself to get it 100%. The best explanation of all KZbin. Thank you so much.
@timlind3129
@timlind3129 Жыл бұрын
Honestly - this is probably the best description / example I've seen yet! Keep it up!
@ByteGrad
@ByteGrad Жыл бұрын
Thanks, will do!
@Dan-p7f
@Dan-p7f Жыл бұрын
agree 100%
@mblackritter
@mblackritter 11 ай бұрын
I've also to *SUPER AGREE* - it's like *finally* someone really explained how it works - instead of talking plain code! 😻 haha 😹💦
@ashishboora3049
@ashishboora3049 Жыл бұрын
I am react developer and never used typescript, just out of curiosity started watching it. Now i am suddenly feeling like i know complete Typescript. I mean how well you explained it, i can understand every second of this video. This is really some next level teaching skill.
@sandeepamarnath3295
@sandeepamarnath3295 4 ай бұрын
I wish I could like this video a 100 times. You are the best teacher ever who sticks to the point and every second is worth watching and learning. Great job!
@tomisadone1145
@tomisadone1145 Жыл бұрын
Spectacular video, had it open in a side tab for a month and I can't regret more not watching it before. Clearest explanation I've seen in a while
@bcb3548
@bcb3548 10 ай бұрын
As someone who has been anxious even when seeing cryptic type notations, this lesson is almost like a therapy session. For me, adding just after writing the function name make sense than coming back to it after annotating arguments. It reads like "this function / class is meant to work with these types".. Thank you!
@jotasenator
@jotasenator Жыл бұрын
I was avoiding generics for a while for no reason, now, finally I will avoid it with a reason
@patfre
@patfre Жыл бұрын
And now employers are gonna avoid you for a reason
@jotasenator
@jotasenator Жыл бұрын
@@patfre auch! was a funny way to say the content is great and well explained but still generics are hard and verbose no matter what. Will be healthy a pole to show how many devs use generics in his job. Also if an employer doesn't select you because you don't use a specific content, well, that is not the place.
@patfre
@patfre Жыл бұрын
@@jotasenator the whole point of generics is the make thing generic, they are very helpful in making things type safe especially with how much TS allows you to do, I just used it today to make my code simpler and cleaner and not be 100 lines of repeated code. Also the thing about companies is they want safe and reliable code that follows best practices a lot so they can absolutely deny you for something like this if your 100% not willing to follow their practices with the code
@PlerbyMcFlerb
@PlerbyMcFlerb Жыл бұрын
​@@jotasenatormight as well just avoid typescript while you're at it. Generics are what allow effective code reuse and sound typing to coexist
@jotasenator
@jotasenator Жыл бұрын
@@PlerbyMcFlerb the thing is I do use typescript, but never generics, in react.js and vue.js and next.js. I was watching this video because all the contents in here are explained in a way I like, still, don t see generics in the feature for me. Not saying I am against them, just I didn't find myself in a position saying: well, is time for generics...
@MrBrandenS
@MrBrandenS Жыл бұрын
Wow this video shed a ton of light on some of the confusing pieces around generics for me. The content was so well put together and with the real life example with usages in react itself it really drove the point home from your early examples of generic benefits and when ti use them. Amazing way to teach these concepts. Thanks! Subscribed.
@patriciogesualdi7472
@patriciogesualdi7472 Жыл бұрын
I really like the emphasis on the relationship aspect, great video!
@xReDxTuRtLeZx
@xReDxTuRtLeZx Жыл бұрын
thanks for the clarity. you are great at explaining concepts, your vids have objectively made me better at TS and feels great when i manage to remember parts of vids when i encounter scenarios on my projects
@IrfanIdris
@IrfanIdris Жыл бұрын
I never realised generics are that simple to explain. Simply great! 👍🏽
@MsFunny920
@MsFunny920 4 ай бұрын
Thanks for the best tutorial on generics I've ever found 🤗
@fluntimes
@fluntimes Жыл бұрын
I agree, this is the best explanation of generics I've encountered. Makes them seem easy, so your video description is on point!
@xeygarz
@xeygarz 2 ай бұрын
I honestly had such a hard time understanding generics and how they differed from explicitly declaring your types. Your emphasis on generics defining *relationships* finally made everything click for me. Thank you for explaining with all the examples!!
@Bangladesh689
@Bangladesh689 3 ай бұрын
This is the best video I've seen about generics.
@lil10dot
@lil10dot Жыл бұрын
the way you explain is so clean and concise
@xi_red4936
@xi_red4936 Жыл бұрын
This is hands down the best explanation I've ever seen on type Generics. Thank you soo much!
@raheelafzal5406
@raheelafzal5406 Жыл бұрын
it was the best of the best explanation i have seen. did not understand the generics, but now it all making sense. HUGE THANKS BRO
@davidgibradze9692
@davidgibradze9692 4 ай бұрын
Your lessons are great and easy to understand for me, thnx , keep going, 👍👍✅🚀
@ALI-se4ph
@ALI-se4ph Жыл бұрын
your channel is great for junior devs who already know javascript and got job but they need more tricks and knowledge to become a better developer
@uvaishassan
@uvaishassan Жыл бұрын
This is the best video on generics I have watched so far. Was really struggling with understanding generics but this helped a lot. Explaining in terms of relationship between arguments and return type was brilliant
@ardianhotii
@ardianhotii Жыл бұрын
I think the same too , best video for generics , again thank you so much @ByteGrag for these awesome videos
@ByteGrad
@ByteGrad Жыл бұрын
Great to hear!
@ally2502
@ally2502 Ай бұрын
The relationship tip was all I need to understand the generics! thanks mn
@sofianesaid226
@sofianesaid226 8 ай бұрын
easier than I thought now after watching your video, thank you very much!
@wellswatti
@wellswatti Жыл бұрын
"Hopefully this helps you out a little bit with generics". No sir! This helped me out a ton!
@PaulnJenna
@PaulnJenna Жыл бұрын
Amazing! I was confused before watching this. Great explanation!!
@mohamed_mahran
@mohamed_mahran Жыл бұрын
Thank you mate! The video was on point. Finally I got a understanding in generics.
@seelvek6550
@seelvek6550 4 ай бұрын
Thanks Wesley! Great as always!
@RegisZaleman
@RegisZaleman Жыл бұрын
Well done. It is one of the best explanations of generics I have heard. From super simple to using it in React. Really good. Got my sub!
@Dan-p7f
@Dan-p7f Жыл бұрын
You totally nailed it! I've read docs couple times and yet still didn't get full understanding, but now... thank you man!
@ByteGrad
@ByteGrad Жыл бұрын
Great to hear! :)
@Dan-p7f
@Dan-p7f Жыл бұрын
@@ByteGrad great explanation, keep up the good work
@TieshaOnishea
@TieshaOnishea 3 ай бұрын
Your videos are REALLY helpful, thank you so much. Thanks for the best tutorial on generics I've ever found .
@TieshaOnishea
@TieshaOnishea 3 ай бұрын
I was avoiding generics for a while for no reason, now, finally I will avoid it with a reason
@nurlanshukurov3864
@nurlanshukurov3864 Жыл бұрын
This is the best Ts generics video I've seen so far. Please, make video about mapped types and keyof keyword also. 👑
@mkaufmandev
@mkaufmandev 9 ай бұрын
Excellent tutorial packed with valuable information and reasoning.
@cypherop2608
@cypherop2608 Жыл бұрын
best explanation on generics so far
@tblancog
@tblancog Жыл бұрын
I really liked the way you explain such a complex topic like this one, you got a new subscriber. Thanks!
@heitorpaulo5403
@heitorpaulo5403 Жыл бұрын
Wow! Finally...The relationship tip was the key to understand generics for me.
@saiphaneeshk.h.5482
@saiphaneeshk.h.5482 Жыл бұрын
Damn, it feels difficult but you can no where find these kind of basic knowledge which you'll only get from experience. Thanks allot.
@adhy612000151
@adhy612000151 7 ай бұрын
Thanks For your explanation about Generic, Wesley!!!! Great tutorial!
@ryanwoods3333
@ryanwoods3333 Жыл бұрын
really enjoy the typescript/react content thank you!
@maor44
@maor44 Жыл бұрын
Amazing video dude! really helpful!
@sakarsr
@sakarsr Жыл бұрын
Neat explanation of Typescript Generics. Thank you for your time, have good health and a nice day.
@Ahmed-fq3kz
@Ahmed-fq3kz Жыл бұрын
Wow, very clear and to the point
@pastuh
@pastuh Жыл бұрын
If the React/Next.js course were explained like this, it would be amazing.
@grottogg4758
@grottogg4758 Жыл бұрын
Thanks for all your hard work, extremely helpful teacher!
@mr.javascript1320
@mr.javascript1320 Жыл бұрын
Amamzing explanation !!!! loved it !!!!
@ByteGrad
@ByteGrad Жыл бұрын
Glad you liked it!
@HeyNoah
@HeyNoah Жыл бұрын
Awesome tutorial!! Super easy to follow! Thanks a mill!
@miksica
@miksica Жыл бұрын
Pure gold, and thank you!
@AlexShemwell
@AlexShemwell Жыл бұрын
This was such a good explanation. I was always wary of generics, but no longer!
@sarowarhosen003
@sarowarhosen003 Жыл бұрын
. i had many confusion about ts Generics . this tutorial is very helpful for me thank you so much , , now i have clear understand
@Harduex
@Harduex Жыл бұрын
Very clean and comprehensive tutorial, keep up the good work 🙌
@pasanflo
@pasanflo Жыл бұрын
Good example, thanks!
@MahdiyarRezaei-o7i
@MahdiyarRezaei-o7i Ай бұрын
well done , keep going sir !
@gregplittjunior8313
@gregplittjunior8313 Жыл бұрын
Kind of clear explanation, bravo 👏
@alexandrupintilei5657
@alexandrupintilei5657 Жыл бұрын
Awesome video! Thanks!
@petleveler8366
@petleveler8366 8 ай бұрын
So much value here!
@nathpaiva
@nathpaiva Жыл бұрын
Generic is so cool. Nice video!
@shivanshpatel4072
@shivanshpatel4072 Жыл бұрын
Awesome video you make this concepts really easy to understand ❤
@laputafelix
@laputafelix Жыл бұрын
Again, another extremely precise video to me
@stratuspei9405
@stratuspei9405 7 ай бұрын
Why is the type parameter ( "") after the function name or type name necessary? I'm guessing it's just for better performance of the TS compiler. It seems the input parameter type(s) (including the sequence in which they appear) and the output type are sufficient information to determine the relationships that need to be codified. I'm grateful for your video. The statement that "generics are specifications of codifying relationships between parameter and output types" is excellent and did make it easy to understand generics.
@Redyf
@Redyf 10 ай бұрын
Your videos are REALLY helpful, thank you so much
@reazon7
@reazon7 5 ай бұрын
Thx you, really great explanation.
@ethaneth6481
@ethaneth6481 Жыл бұрын
In practice defining theme just as a string makes more sense, but I got your point, good tutorial
@ludwigvillalba1886
@ludwigvillalba1886 Жыл бұрын
Well explained!
@attilagyen1446
@attilagyen1446 Жыл бұрын
You can make it more clear when you leave out the { } and make the convertToArray as a one-liner. const convertToArray = (input: T) => [input];
@Blast-Forward
@Blast-Forward Жыл бұрын
Just remember that it won't get hoisted.
@matan1147
@matan1147 Жыл бұрын
Great video! loved your explanations 🔥
@alenakavyrshyna3916
@alenakavyrshyna3916 11 ай бұрын
The best video about generics ❤ thanks
@pixyoutube538
@pixyoutube538 Жыл бұрын
Great! Your video is very easy to understand
@grzegorzpaprzycki2547
@grzegorzpaprzycki2547 Жыл бұрын
You explain hard topics very clearly. Keep going like that ❤
@amirhossein.banaei
@amirhossein.banaei 11 ай бұрын
great explanation. thanks a lot .
@junsgk
@junsgk Жыл бұрын
Best best ts teacher on youtube
@Assassin29
@Assassin29 Жыл бұрын
very easy and cool explanation
@dominikrodler8010
@dominikrodler8010 9 ай бұрын
Excellent presentation
@SimPwear84
@SimPwear84 Жыл бұрын
Very cool video! I found your channel today and subbed for more content
@danielmdenton
@danielmdenton Жыл бұрын
This video earned a subscription.
@mervinmarias9283
@mervinmarias9283 Жыл бұрын
I don't even use TypeScript, but after this video I actually understand how to use generics.
@shashanktiwari8511
@shashanktiwari8511 8 ай бұрын
Excellent example, and i want to know what is this VS extension that is giving suggestions for auto code complete
@fiskryeziu
@fiskryeziu Жыл бұрын
Thank you for the video learned a lot
@meal_team_six
@meal_team_six 10 ай бұрын
Very helpful!
@__mac
@__mac Жыл бұрын
This helped alot!
@Salah-YT
@Salah-YT Жыл бұрын
thank you so much
@serhiityshchenko4006
@serhiityshchenko4006 Жыл бұрын
Great video. Thanks!
@K.Huynh.
@K.Huynh. Жыл бұрын
thank for sharing! It's new for me! 🌈
@tszhong0411
@tszhong0411 Жыл бұрын
You are the best! Keep it up ❤
@md.asifal-mahmud5952
@md.asifal-mahmud5952 Жыл бұрын
Awesome, Thanks a lot.
@GooseGumlizzard
@GooseGumlizzard 9 ай бұрын
this is great, thank you
@mikkun_
@mikkun_ Жыл бұрын
In just 22 minutes, I've learned a lot
@youneshenni5417
@youneshenni5417 Жыл бұрын
great one!
@123tomani
@123tomani Жыл бұрын
Very well explained 🎉 Can you also do a video on websockets and best way to implement in micro front end application
@cubedev4838
@cubedev4838 Жыл бұрын
I love how the way u explain
@wisdomelue
@wisdomelue Жыл бұрын
great great content!
@Edgar-pu1lc
@Edgar-pu1lc Жыл бұрын
Hello, when will your next js course be ready?
@ByteGrad
@ByteGrad Жыл бұрын
Finishing the last few details. Make sure you’re on the email list :)
@prashlovessamosa
@prashlovessamosa Жыл бұрын
Thanks for sharing.
@kaushlendrashukla8350
@kaushlendrashukla8350 10 ай бұрын
Well explained
@ByteGrad
@ByteGrad Жыл бұрын
My Professional React & Next.js course is OUT NOW now! Find it here: bytegrad.com/courses/professional-react-nextjs -- this is the #1 resource to master the latest React & Next.js, my absolute best work.
@iwmatt
@iwmatt Жыл бұрын
@raymondmichael4987
@raymondmichael4987 Жыл бұрын
Thanks buddy 😊
@ByteGrad
@ByteGrad Жыл бұрын
No problem 👍
@ajayrathod7438
@ajayrathod7438 6 ай бұрын
It was a very nice video thank you. What package do u use to get suggestions for your code
@МаксимРаспопа-б2г
@МаксимРаспопа-б2г Жыл бұрын
its good for me thanks!
@vpdexx
@vpdexx Жыл бұрын
Great! Just one question: what's the point of having a generic since you are extending it from something else (React.ReactNode in your example)? You do that just for relationships between params and return value or am I missing something? Thank you, keep it up!
@ByteGrad
@ByteGrad Жыл бұрын
Yep, just to codify that relationship between the 2 props
@shreyas0924
@shreyas0924 Жыл бұрын
Greate video!!
@anonanon7368
@anonanon7368 Жыл бұрын
You're a beast man
Typescript Generics | Beginners Tutorial with Examples
24:43
Dave Gray
Рет қаралды 19 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,6 МЛН
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Рет қаралды 187 М.
Learn TypeScript Generics In 13 Minutes
12:52
Web Dev Simplified
Рет қаралды 294 М.
7 Awesome TypeScript Types You Should Know
8:57
Josh tried coding
Рет қаралды 90 М.
I Cannot Believe TypeScript Recommends You Do This!
7:45
Web Dev Simplified
Рет қаралды 179 М.
All 17 React Best Practices (IMPORTANT!)
1:46:11
ByteGrad
Рет қаралды 219 М.