This is why learning typescript generics is important

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

You're like if "Common Sense" was a programmer. You don't have any ridiculous esoteric pseudo-advice to give, but you just stick to the basics and make cool stuff. Validates "the basics" in a climate where you either use vim and program in c/rust, or you use vscode and write next 13 apps. I'm really glad I found this channel.

st-jngk
Автор

The more difficult parts of TS (generics, mapped/recursive/conditional types, etc) are not easy to learn from the docs by themselves. Gabriel Vergnaud's Type-Level TypeScript was a really helpful resource for me, and I've heard good things about TypeHero

jly_dev
Автор

"That's something that's really important when building a libary, is start with the interface - how a people paying to consume your functions / interface"
Such a valuable tip, applies to any function / structure; it helps a lot to find a good "how" to think about the user first.
Really good content! Not much new stuff in this video for me, but subbed for the conciseness and the calming voice.

leonauswien
Автор

Didn't take you long to become my favourite tech Youtuber. Perfect no-nonsense approach to videos, ability to call things out for what they are and diving into technical content like this and that custom framework you're on currently. Your videos are a goldmine when it comes to reaffirm knowledge and see different use cases for different strategies.

Really appreciate the work you're putting into this channel and its content!

philheathslegalteam
Автор

Such an amazing tutorial. I used it before to create a local storage hook, which is one of those rare cases where you have to create a generic function.

monstajoedev
Автор

Im not a guy of typescript but I try to learn on the future. This video was awesome about generics good example and explain.

bowaller
Автор

It’s a great video, thank you. I hope there will be more videos about this topic. Great work!

Ganidv
Автор

Well done explaining generics! You earned a new subscriber

florianwebdev
Автор

Such a great video! This made me realize that not all TS is difficult and actually fun to write. Love the content, keep it up!

dannycollazo
Автор

Such an amazing educative content. I learned a lot from you. And I am applying it to my and my company's codebase.

barssavas
Автор

great videos man, i eat breakfast while watching your videos, always great content, keep it up man !!!

abdiraqiibmohummed
Автор

To the point. As per usual, Cody delivers! Keep it up!

TheEchinox
Автор

6:11 extends key of TStore
7:19 using generic to control user set input
9:12 callback signature
12:14 ReturnType

leebobtheblob
Автор

This was impressive, generics seems to be my next step in understanding TS. :D

juanmacias
Автор

Dont stop making videos ever lol some of these random topics end up saving me in my project

eshw
Автор

I just used it while creating a hook for storing my items in local storage

nidhishsrivastava
Автор

Though there is not "class keyword" involved, but the way you handle it is just OOP, because you want all the "object" to inherit the get/set function, that's why the "generic" kicks in. It could be a pattern for library author, but pretty much not for application level app.

doc
Автор

super cool, i build something similar a month ago because i just wanted redux toolkit kind of functionality in an old angular js file using rxjs
i had to use jsdocs but still works nice

elmalleable
Автор

As I was watching I was wondering the difference between <Key extends keyof TStore> and <Key keyof typeof TStore>. I guess I'm more familiar with the second structure.

fluntimes
Автор

What is the extension that puts the solid yellow line around your current function/scope? It doesn’t appear to be in the Bearded theme or rainbow indent and I didn’t see it in your themes video.

nsatempe
join shbcf.ru