Рет қаралды 5,833
With DRY, or "Don't Repeat Yourself" the goal is to reduce or eliminate duplicate code, making our intent more clear.
In this video, we'll examine techniques for using generics to build generalized functions in our Angular applications.
Links
Code: stackblitz.com/~/edit/stackbl...
KZbin video: "Understanding Immutability in JavaScript": • Understanding Immutabi...
Special Thanks
🌟 To Sander Elias for suggesting generics. Follow him at: mastodon.social/@sanderelias
Content
00:00 DRY - Don't repeat yourself
00:40 Sample application
01:36 Generics
03:51 Calling a generic function
04:42 keyof
08:00 Generalized signal update
10:46 Generic constraints
14:23 Wrap up
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
😊About Me
Hey! I'm Deborah Kurata
I'm a software developer and KZbin content creator. I speak at conferences such as VSLive and ng-conf. I write articles for freeCodeCamp. And I'm a Pluralsight author with courses in the top 10 most popular (out of 7,000+) for over 5 years. For my work in support of software developers, I've been recognized with the Microsoft Most Valuable Professional (MVP) award, and I'm a Google Developer Expert (GDE).
View my KZbin content: / @deborah_kurata
Contact me on Twitter: / deborahkurata
Find my Pluralsight courses: www.pluralsight.com/profile/a...
Access my freeCodeCamp articles: www.freecodecamp.org/news/aut...
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
#angular
#angularsignals
#angulartutorials
#angulartutorial
#angulardevelopers
#angularTypeScript
#angularapplications
#generics
#genericswithangular
#DRYwithangular
#DRYwithgenerics
#bestangularpractices