TypeScript Generics: All You Need to Know

  Рет қаралды 4,611

Software Developer Diaries

Software Developer Diaries

Жыл бұрын

In this TypeScript tutorial, we explore the use of TypeScript Generics to improve code quality and explain how TypeScript Generics work in different use cases. You'll learn how to simplify your code, boost reusability, and take your TypeScript skills to the next level.
======⚡⚡⚡======
Consider supporting the channel by clicking the "Thanks" button ❤️
👉 Get a 20% discount on Brilliant.org (to learn Science, Technology, Engineering, and Math): brilliant.sjv.io/kjVO2z
======⚡⚡⚡======
🙌 Become my Patreon and get exclusive perks: / softdevdiaries
💼 Follow me on LinkedIn and drop me a message if you'd like: / gusgadirov
💻 Also, let's connect on GitHub: github.com/gusgad
📚 Resources:
Full documentation of Generics: www.typescriptlang.org/docs/h...
And don't forget to subscribe for more videos like this 😊

Пікірлер: 19
@alidev6882
@alidev6882 Ай бұрын
i get ask thus topic in every interview and i explained wron everytime, now i got the proper understanding, thanks mate
@ImranShaikh-lu6wq
@ImranShaikh-lu6wq 4 ай бұрын
Thanks, hope we enjoy more generic videos in future.
@snekface1707
@snekface1707 7 ай бұрын
Thanks for the tutorial. Trying to wrap my head around generics and this helped a lot!
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 7 ай бұрын
Great to hear!
@user-ky4nt5ib2j
@user-ky4nt5ib2j 6 ай бұрын
And i also understood generics , Thank you very much sir
@DreamStreet2012
@DreamStreet2012 Жыл бұрын
This is the best explanation I have seen so far
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries Жыл бұрын
Happy to hear mate!
@maximes.3209
@maximes.3209 7 ай бұрын
Thank you for making this video, it helps me a lot !
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 7 ай бұрын
You're very welcome!
@computerhoofd
@computerhoofd Жыл бұрын
Very concise
@Di-yes
@Di-yes Жыл бұрын
Man, that's good really 🤔very nice for such dummies like me
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries Жыл бұрын
Glad to have you here mate! We all start somewhere 😉
@betomoedano
@betomoedano Жыл бұрын
Great video bro!
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries Жыл бұрын
Thanks mate 🙂
@carol00210
@carol00210 6 ай бұрын
So can I say that generics help me not having to overload methods? As I wouldn't have to write different methods with different parameter types in a class?
@SoftwareDeveloperDiaries
@SoftwareDeveloperDiaries 6 ай бұрын
Correct 👍
@md.mohiulislam6516
@md.mohiulislam6516 10 ай бұрын
awsome
@thedavistheory7674
@thedavistheory7674 6 ай бұрын
Mmmm couldn't we use a union type? Also doesn't this sorta defeat the purpose of ts? It seems like we are doing some extra steps to convert a static parameter into a dynamic one. Those are my doubts
@sf-spark129
@sf-spark129 6 ай бұрын
same question here. If we are making the type of a parameter as generics and can pass different types of parameters depending on what type we define at the function call level, what's the point of using a typed language and what's the difference b/w using the type any and generics ?
7 TypeScript DOs and DON'Ts That You Should Be Aware Of
14:07
Software Developer Diaries
Рет қаралды 4,5 М.
Generics in Typescript
12:27
Hitesh Choudhary
Рет қаралды 17 М.
Wait for the last one! 👀
00:28
Josh Horton
Рет қаралды 83 МЛН
小女孩把路人当成离世的妈妈,太感人了.#short #angel #clown
00:53
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 47 МЛН
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 59 МЛН
TypeScript Generics are EASY once you know this
22:21
ByteGrad
Рет қаралды 125 М.
All You Need To Know About TypeScript
14:29
Clément Mihailescu
Рет қаралды 226 М.
Learn TypeScript Generics In 13 Minutes
12:52
Web Dev Simplified
Рет қаралды 225 М.
How to use generics in TypeScript
11:46
Andrew Burgess
Рет қаралды 36 М.
Advanced Golang: Generics Explained
13:37
Code With Ryan
Рет қаралды 55 М.
TypeScript от А до Я - часть 2: classes, extends, implements, generics, utility types
58:34
Елена Литвинова — Искусство Веб-разработки 🛸
Рет қаралды 17 М.
How to use "Streams" to improve performance in Node.js?
12:22
Software Developer Diaries
Рет қаралды 18 М.
Typescript Generics Tutorial
21:56
Ben Awad
Рет қаралды 218 М.
any vs unknown vs never: TypeScript demystified
8:01
Andrew Burgess
Рет қаралды 20 М.
No BS TS #7 - Generics in Typescript
8:20
Jack Herrington
Рет қаралды 39 М.
Разряженный iPhone может больше Android
0:34
Секретный смартфон Apple без камеры для работы на АЭС
0:22
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 7 МЛН
сюрприз
1:00
Capex0
Рет қаралды 1,6 МЛН
Купил этот ваш VR.
37:21
Ремонтяш
Рет қаралды 289 М.