No BS TS 34 - Typescript Decorators

preview_player
Показать описание
We're back with one more No BS TS and this time we are looking at Typescript Decorators; how to make them, how to use them.

00:00 Introduction
00:20 What are decorators
01:20 Project setup
04:36 Method decorators
08:10 Class decorators
11:55 Parameter decorators
16:11 Review
16:45 Outroduction

Types vs Interfaces:

👉 What's my theme? Night Wolf [dark blue]
👉 What's that font? MonoLisa

💢 Watch our other videos:

Thank you for watching this video, click the "SUBSCRIBE" button to stay connected with this channel.

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

I fell in love with decorators after playing with Nest. And then I remembered Angular uses them and I cried :D
I am using decorators in React now and I am very happy.

NorweskiDrwal
Автор

This is perfect and love this series! Started to learn Nestjs and Angular this week for an upcoming project so this is what I needed. :)

simondavis
Автор

It is a very complex subject, but the application explanation is very good. If it comes to me in the future, I will benefit from this video again.

berkaygurcan
Автор

Great video, can't wait to see some more NX mono repo with module federation 😜

philykearney
Автор

AOP: We use all kinds of these for serialization, authorization, and pagination in our NestJs controller route classes. These are also used in NestJs services for auto wiring dependencies.

codezero
Автор

Seems to complicate my mental model of the language (somewhat different from Python decorators), but your explanation was straightforward and helped me to understand how to create and use them. Hopefully as I learn more, I will appreciate this feature more.

lawrencejones
Автор

Good video for people that love to copy and paste code without explanations. Congrats! (I'm being sarcastic)

leonardolourencocrespilhoh
Автор

Thanks, Jack - great video! BTW, I'm currently writing an article for a german developer magazine on this subject. However, my goal is to compare the two implementations (TypeScript vs TC39) ...

marcteufel
Автор

This was a super helpful brilliant video. Thank you so much :-)
If I am interpreting it correctly, it seems that the way to perform dependency injection as well as use something similar to delegates in C# inside of the Typescript language can be done all with using Decorators.

SpencerDavis
Автор

Hi Jack, great content! What VS Code theme and font are you using? They look pretty neat :)

RaduCostinean
Автор

great series. feels like i am too stupid for this

andTutin
Автор

@Jack Herrington, have you ever covered Class Expressions ? I came across it yesterday, and it seemed interesting in relations to Decorators, but perhaps also in connection with React ?.. I couldn't see use cases for Class Expressions right off the bat, but perhaps you have some insight, that's worth a video ?

okerror
Автор

Great explanation! Very good quality of videos too! If I may ask, which mic are you using?

compmaestros
Автор

Cool
Thanks for the great series
I know JavaScript's decorators are on the way. Can you explain them and clarify the difference
Unfortunately decorator can't affect the type and that's a bummer for example when you want to add / remove some extra arguments to/from a method, etc

mortezatourani
Автор

Hey Jack great video. Do you have any plan on making a series on monorepo using yarn workspace and lerna ?

devorein
Автор

How do you make an image pop up in the terminal when you open it like @1:31 ????

milkdromda
Автор

Do proxy classes/objects solve all the limitations of decorators?

cas
Автор

I really love the background. Is that real or fake? Do you have any plans for the setup video? Will love to see that. Thanks

SyedZainUlHasan
Автор

Nice videos. Also your voice!!! Have you explored opportunities as narrator in hollywood \ audible reader \ other online course platforms? I would love listening to audio books in this voice!

pixelseeker
Автор

this constructor<T> thing, when compared to `new` (seen often in declaration) sort of puzzles me...

aram