Such a great explanation! I loved the approach when u said that the generic type T for example, CATCHES what is passed in as arguments when we invoke the function. Thank you very much!
I was confused about the whole concept of generics.But, I got a solid understanding of it before you even complete the video. Your explanation is clear and straight to the point. Thanks.
lecture 16 or 17: let doc: HasFormatter; we can define it as object like let doc:{}; because if we assign doc = new invoice() and invoice class has format function that doc can access why we assign doc: HasFormatter.
please make a video about how to stop watching your videos and actually start coding. I'm in the net ninja tutorial hell and I've even created a playlist of playlists that I'm gonna binge watch.
Little tip for ID's: use something like UUID (if you are using npm): npm install uuid import { v4 as uuidv4 } from 'uuid'; uuidv4(); // Returns random UUID
@@ibadshaikh2215 Yeah, but it wouldn't hurt to teach a good practise right away. Of course, there are already auto-generated ID's with Firestore and other modern databases.
You are the best, just a little request. The Net Ninja, I hope you see this comment. Like me many other people want a web series based on building couple of web apps using complete MERN stack, as you had already covered everything like these in separate playlists dedicated to each technology. Kindly make a series for complete MERN stack web app. Also please teach Role based access control. and dashboard building... Lots of love, big time fan... Alright then Gang!
Thank you, excellent tutorial series. I have to start doing TypeScript for work these days so this has been a great explainer. To be honest I think I prefer the simplicity of plain vanilla JavaScript (ES6+) for an easier coding life. Interfaces + Generics, that's heavy doc. Also I don't know if I want to invest in TypeScript for personal projects, it might not be around forever, it could go the way of CoffeeScript if they add typing to JS one day.
but why we make its harder to our selfs we can just use (any) type in front of the value that we want it to be generic and thats it and in function we can just structure the object by saying obj:{name:string,age:string} so its know the properties
This syntax was one of the most confusing bits about TS for me, but now it makes perfect sense. Thank you! Such a clear explanation!
As a C# developer it's nice to see these features in javascript.
The best explanation of Generics I've seen so far on UA-cam. Thank you for making this simple to understand.
Glad it was helpful!
Generics have confused me from the moment I laid eyes on typescript. This video has done wonders to clear the fog around . Thanks a bunch!
Such a great explanation! I loved the approach when u said that the generic type T for example, CATCHES what is passed in as arguments when we invoke the function. Thank you very much!
Glad it helped! :)
Wonder explanation of complex topics in simple and easy-to-digest way!! Thanks
Thanks for this! I ended up following this complete course because of my confusion with Generics and you filled in a lot of gaps :)
I was confused about the whole concept of generics.But, I got a solid understanding of it before you even complete the video. Your explanation is clear and straight to the point. Thanks.
That's awesome to hear :) thanks for watching
Really love how the typescript devs implemented some core concept ideas from C++.
they did not, Anders Heljsberg designed the language
I want to appreciate that you explained so hard a concept so easily
This is the best training video about Generics. Thank you!😘😘😘😘😘
Glad you liked it! :)
Thank you very much for sharing your knowledge with us in such an accessible way
The best explanation for Generics 🤑
You are awesome
How did I learn typescript in a day?
Code like C#, think like javascript. And there you go.. Typescript ladies and gentlemen.
Both languages were made by the same person, that's probably why they are so similar.
The video series I need, perfect timing. I love The Net Ninja 😍
What's your VSCode theme? Your VSCode theme is very cool 😎
Yeah, I've the same question !
Hey, its Monokai++ :)
@@NetNinja Cool, thx !
Got it.Good Explanation...Thank you for making this video.
The best explanation so far! Thank you so much!
And when It has several values, comma separated, like ?
Thank you very much ninja for these tutorials 💻💪🏼👨🏼💻
Two videos in the same minute
Bravo
perfect explanation of Generics!
lecture 16 or 17:
let doc: HasFormatter;
we can define it as object like let doc:{};
because if we assign doc = new invoice()
and invoice class has format function that doc can access why we assign doc: HasFormatter.
please make a video about how to stop watching your videos and actually start coding. I'm in the net ninja tutorial hell and I've even created a playlist of playlists that I'm gonna binge watch.
just finding a job. your knowledge will be usefull and implemented ASAP :)
@@mikha2880 bruh
code along! :)
@@mikha2880 that's not how to escape tutorial hell lol
Excellent video on Generics! Thank you!
Little tip for ID's: use something like UUID (if you are using npm):
npm install uuid
import { v4 as uuidv4 } from 'uuid';
uuidv4(); // Returns random UUID
Obviously! Shaun is just giving an example.
@@ibadshaikh2215 Yeah, but it wouldn't hurt to teach a good practise right away.
Of course, there are already auto-generated ID's with Firestore and other modern databases.
Excellent brief clear explanation! Lots of thanks!!
Great tutorial shaun, helped brush up my TS knowledge as well as vanilla JS concepts
Glad it helped Emmanuel!
You are the best, just a little request. The Net Ninja, I hope you see this comment. Like me many other people want a web series based on building couple of web apps using complete MERN stack, as you had already covered everything like these in separate playlists dedicated to each technology. Kindly make a series for complete MERN stack web app. Also please teach Role based access control. and dashboard building...
Lots of love, big time fan... Alright then Gang!
Thank you. This was a clear defination
you are amazing by simplifies things .. THANK YOU
Thanks for your support Amer :)
just incredibly good every time
Nice tutorial. May I ask you a question? Why you use windows over Mac OS or Linux as a developer?
How did you convert that string so quickly to an array at 9:10 in the video? Is there a VS Code shortcut or extension that does that?
@palundrium select the string and ctrl + [ To wrap brackets around the string or ctrl + { to wrap curly braces around the string.
Great explanation. Thank you.
Instead of "string[]" would you also be able to do "Array"?
What if we want to make all three fields generics in that interface, what should the syntax look like?
brilliant explanation, thank you so much!
It is easy to understand by your explain.
Thanks for this playlist, it is really awesome. Just wondering when will the webpack playlist that you mentioned come out?
nicely explained.
This video saved me. I was stuck on a bug for 2days
Thank you, excellent tutorial series. I have to start doing TypeScript for work these days so this has been a great explainer. To be honest I think I prefer the simplicity of plain vanilla JavaScript (ES6+) for an easier coding life. Interfaces + Generics, that's heavy doc. Also I don't know if I want to invest in TypeScript for personal projects, it might not be around forever, it could go the way of CoffeeScript if they add typing to JS one day.
Great explanation thanks!
Glad it was helpful Drew!
Very interesting and very well explained
I had trouble understanding Java generics, but this just clicked.
Such a great tutorial, thank you
why don't you use :any instead of ?
thank you very much
thank you man, that helped
Thank you!
Thank you, its been bugging me for a while this.
Such a good video thank you!
Thanks Zach, hope it helped!
hii, I am new to typescript
i have one doubt about returning value that why there is 3 dot before obj while returning?
It's a spread operator, an ES6 feature.
6:20 why not any?
but why we make its harder to our selfs we can just use (any) type in front of the value that we want it to be generic and thats it
and in function we can just structure the object by saying obj:{name:string,age:string} so its know the properties
why don't we use type any instead of assigning a generic to data property?
Please upload angular series tutorial ninja sir
thanks dude
No problem! :) thanks for watching
is Decorators included in the coming tutorial?
Hey, not in this one but I’ll do a video about them in future 👍
@@NetNinja thanks :)
would love a trpc tutorial
Wow, just great
awesome video
Thanks!!
You just scared me at @9:24 I thought my screen wrecked....
thanks
Awesome
👍👍👍
Nice video sir
Thanks!!
and the use case?
Attach playlist link in description or in comments
OHHHHHHHHHHHHHH. So that's what it means. Thanks :)
ty vm.
We are waiting node.js course, Mr. Ninja
Programming is hard. We can combat this by listening to the Net Ninja.
why don't you just put any as the type of data
1000+ likes / 1 dislike ... wow who is that hater
So it's a way for not using 'any' and not creating a bunch of interfaces for objects that are very simmilar I guess.
look like templates in c++
The fact that 'docone' didn't pick up the other properties of the object e.g. name:'yoshi' seems to make no sense at all.
well, that's just C++minus some steps
So, can i say - "generics are a way to use Type as a parameter."
More now like java. Polymorphism 🎩
but why tf we do all this nonsense. It seems like C# crap
I have herpes
thanks