No BS TS 34 - Typescript Decorators

  Рет қаралды 20,147

Jack Herrington

Jack Herrington

Күн бұрын

Пікірлер: 44
@NorweskiDrwal
@NorweskiDrwal 3 жыл бұрын
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.
@simondavis1303
@simondavis1303 3 жыл бұрын
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. :)
@philykearney
@philykearney 3 жыл бұрын
Great video, can't wait to see some more NX mono repo with module federation 😜
@codezero6023
@codezero6023 3 жыл бұрын
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.
@berkaygurcan141
@berkaygurcan141 2 жыл бұрын
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
@meepk633 Жыл бұрын
Love that paint color. Great work.
@lawrencejones51
@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.
@SpencerDavis2000
@SpencerDavis2000 3 жыл бұрын
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.
@jherr
@jherr 3 жыл бұрын
Yeah, I didn't think about that use case. But you definitely could.
@UsamaRashad-q7j
@UsamaRashad-q7j Ай бұрын
Nice lesson in decorators. Thanks.
@marcteufel8348
@marcteufel8348 3 жыл бұрын
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) ...
@jherr
@jherr 3 жыл бұрын
Interesting, I'll give TC39 a look.
@leonardolourencocrespilhoh511
@leonardolourencocrespilhoh511 11 ай бұрын
Good video for people that love to copy and paste code without explanations. Congrats! (I'm being sarcastic)
@大盗江南
@大盗江南 2 жыл бұрын
Thanks buddy! Great video!
@RaduCostinean
@RaduCostinean 2 жыл бұрын
Hi Jack, great content! What VS Code theme and font are you using? They look pretty neat :)
@okerror1451
@okerror1451 3 жыл бұрын
@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 ?
@jherr
@jherr 3 жыл бұрын
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.
@compmaestros6155
@compmaestros6155 2 жыл бұрын
Great explanation! Very good quality of videos too! If I may ask, which mic are you using?
@jherr
@jherr 2 жыл бұрын
For these ones a sennheiser shotgun mic.
@compmaestros6155
@compmaestros6155 2 жыл бұрын
@@jherr Thank you!
@mortezatourani7772
@mortezatourani7772 3 жыл бұрын
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
@devorein
@devorein 3 жыл бұрын
Hey Jack great video. Do you have any plan on making a series on monorepo using yarn workspace and lerna ?
@jherr
@jherr 3 жыл бұрын
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.
@devorein
@devorein 3 жыл бұрын
@@jherr Amazing looking forward to that :)
@washingtonsoaresb
@washingtonsoaresb 3 жыл бұрын
Awesome!
@pixelseeker
@pixelseeker 2 жыл бұрын
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!
@jherr
@jherr 2 жыл бұрын
Hahaha, no. Haven't looked into that. Thank you for the compliment though.
@SyedZainUlHasan
@SyedZainUlHasan 2 жыл бұрын
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
@jherr
@jherr 2 жыл бұрын
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.
@milkdrom3da
@milkdrom3da 8 ай бұрын
How do you make an image pop up in the terminal when you open it like @1:31 ????
@aram5642
@aram5642 2 жыл бұрын
this constructor thing, when compared to `new` (seen often in declaration) sort of puzzles me...
@cas818028
@cas818028 3 жыл бұрын
Do proxy classes/objects solve all the limitations of decorators?
@jherr
@jherr 3 жыл бұрын
A lot for sure. Can proxies add fields and methods? I'll have to check into that.
@vpetryniak
@vpetryniak 3 жыл бұрын
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 :)
@jherr
@jherr 3 жыл бұрын
I did a video with Vite recently if I recall. It is great and I'm using it a lot more.
@andTutin
@andTutin Жыл бұрын
great series. feels like i am too stupid for this
@jherr
@jherr Жыл бұрын
You aren’t.
@jakeycakester
@jakeycakester 3 жыл бұрын
Why can't typescript know about the properties added to a decorated class?
@jherr
@jherr 3 жыл бұрын
That's a good question.
@deltechdiaries5907
@deltechdiaries5907 2 жыл бұрын
@@jherr answer it then
@jherr
@jherr 2 жыл бұрын
@@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.
@deltechdiaries5907
@deltechdiaries5907 2 жыл бұрын
@@jherr thanks for your reply, Hope my comment didn't sound rude😁
@elpolodiablo5486
@elpolodiablo5486 Жыл бұрын
​@@deltechdiaries5907 It sounds rude
@error-hb6ny
@error-hb6ny 16 күн бұрын
😂😂😂, yuh talk like @elithecomputerguy
Why Typescript?
8:13
Jack Herrington
Рет қаралды 10 М.
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 117 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 27 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 124 МЛН
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 16 МЛН
No BS TS #14 - Mapped Types in Typescript
9:33
Jack Herrington
Рет қаралды 22 М.
8 TypeScript Tips To Expand Your Mind (and improve your code)
10:54
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 483 М.
No BS TS #11 - Enums and Literal Types in Typescript
7:39
Jack Herrington
Рет қаралды 18 М.
Typescript for Javascript Developers in 15min
15:06
CoderOne
Рет қаралды 46 М.
Object Oriented vs Functional Programming with TypeScript
12:07
Domain-Driven Design: The Last Explanation You'll Ever Need
21:05
Software Developer Diaries
Рет қаралды 7 М.
TypeScript Factory Patterns (No BS TS Series 2 Episode 1)
22:07
Jack Herrington
Рет қаралды 35 М.
Vites Fatal Flaw Fixed With Vinxi
11:23
Jack Herrington
Рет қаралды 17 М.
버블티로 부자 구별하는법4
00:11
진영민yeongmin
Рет қаралды 27 МЛН