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.
@simondavis13033 жыл бұрын
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. :)
@philykearney3 жыл бұрын
Great video, can't wait to see some more NX mono repo with module federation 😜
@codezero60233 жыл бұрын
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.
@berkaygurcan1412 жыл бұрын
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.
@meepk633 Жыл бұрын
Love that paint color. Great work.
@lawrencejones51 Жыл бұрын
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.
@SpencerDavis20003 жыл бұрын
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.
@jherr3 жыл бұрын
Yeah, I didn't think about that use case. But you definitely could.
@UsamaRashad-q7jАй бұрын
Nice lesson in decorators. Thanks.
@marcteufel83483 жыл бұрын
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) ...
@jherr3 жыл бұрын
Interesting, I'll give TC39 a look.
@leonardolourencocrespilhoh51111 ай бұрын
Good video for people that love to copy and paste code without explanations. Congrats! (I'm being sarcastic)
@大盗江南2 жыл бұрын
Thanks buddy! Great video!
@RaduCostinean2 жыл бұрын
Hi Jack, great content! What VS Code theme and font are you using? They look pretty neat :)
@okerror14513 жыл бұрын
@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 ?
@jherr3 жыл бұрын
I have covered that in previous videos. In one I used a function to generate a singleton templated database class. But I haven't covered them as an individual topic, no.
@compmaestros61552 жыл бұрын
Great explanation! Very good quality of videos too! If I may ask, which mic are you using?
@jherr2 жыл бұрын
For these ones a sennheiser shotgun mic.
@compmaestros61552 жыл бұрын
@@jherr Thank you!
@mortezatourani77723 жыл бұрын
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
@devorein3 жыл бұрын
Hey Jack great video. Do you have any plan on making a series on monorepo using yarn workspace and lerna ?
@jherr3 жыл бұрын
I should. I hand rolled one a few months ago and it would be cool to do a comparison video between that experience and NX, and/or rush.
@devorein3 жыл бұрын
@@jherr Amazing looking forward to that :)
@washingtonsoaresb3 жыл бұрын
Awesome!
@pixelseeker2 жыл бұрын
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!
@jherr2 жыл бұрын
Hahaha, no. Haven't looked into that. Thank you for the compliment though.
@SyedZainUlHasan2 жыл бұрын
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
@jherr2 жыл бұрын
That's actually real. Currently I use a green screen for that because doing it with a natural background like that has super inconsistent lighting levels.
@milkdrom3da8 ай бұрын
How do you make an image pop up in the terminal when you open it like @1:31 ????
@aram56422 жыл бұрын
this constructor thing, when compared to `new` (seen often in declaration) sort of puzzles me...
@cas8180283 жыл бұрын
Do proxy classes/objects solve all the limitations of decorators?
@jherr3 жыл бұрын
A lot for sure. Can proxies add fields and methods? I'll have to check into that.
@vpetryniak3 жыл бұрын
Hello, thank you for such a great content. I noticed in your videos you sometimes use great new libs like Zustand instead of Redux. So edgy don't you take a look at Vite.js(instead of CRA) and pnpm(instead of yarn). I spent lot of time reading about them and using, so I can say great tools :)
@jherr3 жыл бұрын
I did a video with Vite recently if I recall. It is great and I'm using it a lot more.
@andTutin Жыл бұрын
great series. feels like i am too stupid for this
@jherr Жыл бұрын
You aren’t.
@jakeycakester3 жыл бұрын
Why can't typescript know about the properties added to a decorated class?
@jherr3 жыл бұрын
That's a good question.
@deltechdiaries59072 жыл бұрын
@@jherr answer it then
@jherr2 жыл бұрын
@@deltechdiaries5907 Hahaha, ok. I'm not on the TypeScript team, but if I were to venture a guess it's that the language feature to track the typing through a highly dynamic function that creates class instances was deprioritized because it's both complex to implement and rarely used as a language feature. But, I'm sure you can file an issue with the TypeScript team and then try to get enough up-votes to get it on the schedule.
@deltechdiaries59072 жыл бұрын
@@jherr thanks for your reply, Hope my comment didn't sound rude😁