Design Patterns in Angular Source Code - Bridge Design Pattern

  Рет қаралды 23,451

Decoded Frontend

Decoded Frontend

Күн бұрын

💥 Become a PRO with my in-depth Angular Forms Course💥
🔗 10% discount for the first 10 students - bit.ly/advanced-ng-forms-disc...
Since I started investigating the source code of Angular, I found a few classical design patterns used to implement some framework features. In this video, I will share with you one of them used to design the Angular Forms package. In the first part of the video, you will learn what a Bridge design pattern is and how it was used in Angular Forms making them so flexible. I hope you will learn something new from this video and if you find this helpful video please share it with your colleagues.
🕒 Time Codes:
00:00:00 - Inro;
00:00:34 - What types of Angular Forms exist;
00:02:32 - How to become an Angular Forms expert?;
00:03:43 - Bridge Design Pattern overview;
00:10:51 - How Bridge Design Pattern is used in Angular Forms;
00:15:41 - Outro;
🙌 Support Dmytro bit.ly/donate-to-decoded-fron...
💡 Short Frontend Snacks (Tips) every week here:
Twitter - / decodedfrontend
Instagram - / decodedfrontend
LinkedIn - / dmezhenskyi

Пікірлер: 67
@DecodedFrontend
@DecodedFrontend Жыл бұрын
NOTE⚠ I just realized this after publishing. At 08:58 I made a mistake/typo and implemented the PayPalProvider as an interface instead of the PaymentProvider interface. Typescript didn't catch that, so it was missed... Sorry for the inconvenience and thanks @brokolililer ad @dogandipcin who pointed out this mistake. Leave your thoughts in the comments and follow me on other social media: Advanced Angular Courses - courses.decodedfrontend.io/ Twitter - twitter.com/DecodedFrontend Instagram - instagram.com/decodedfron... LinkedIn - www.linkedin.com/in/dmezhenskyi
@MhmmDonuts
@MhmmDonuts Жыл бұрын
Every Video this guy makes is a 10/10 ❤
@DecodedFrontend
@DecodedFrontend Жыл бұрын
Thank you :)
@MhmmDonuts
@MhmmDonuts Жыл бұрын
@@DecodedFrontend your welcome, BTW i would love to buy a course from you about NX, Storybook, Apps and Libs. Looking forward to it. 😃☺️
@DecodedFrontend
@DecodedFrontend Жыл бұрын
Thanks for letting me know :) Soon I am gonna start to work on it :)
@yuusource2275
@yuusource2275 Жыл бұрын
@@MhmmDonuts Am with you on this.
@yuusource2275
@yuusource2275 Жыл бұрын
@@DecodedFrontend Please do it.
@invictuz4803
@invictuz4803 Жыл бұрын
Love these deep dives into the framework with theory like design patterns, this is where the real learning happens!
@DecodedFrontend
@DecodedFrontend Жыл бұрын
Great to hear! Thank you for your feedback:)
@pierre-louis2711
@pierre-louis2711 Жыл бұрын
Please continue on covering Design Patterns on Angular. This is exactly what i am trying to do on my own, and you definelty help me to understand it better ! You are a game changer.Thank you!
@guilhermelucas6223
@guilhermelucas6223 Жыл бұрын
I looked this up years ago and had a hard time finding it. Very good explanations. If you take a course with these good practices I'm sure it would sell a lot
@DecodedFrontend
@DecodedFrontend Жыл бұрын
Thank you for the feedback:) I will keep in mind that 🙌
@MrKOHKyPEHT
@MrKOHKyPEHT Жыл бұрын
God I wish someone could explain to me SOLID principles a year ago so clear as Dmytro did =)
@DecodedFrontend
@DecodedFrontend Жыл бұрын
;)
@sanketjain7788
@sanketjain7788 9 ай бұрын
The best Angular videos on the internet!
@oleksandrvorovchenko8674
@oleksandrvorovchenko8674 Жыл бұрын
Great explanation, as usual!
@tangocukedi1
@tangocukedi1 11 ай бұрын
thanks for the design pattern series! very helpful
@ScareCrow4018
@ScareCrow4018 Жыл бұрын
Another great video! Thank u for ur content, watching with pleasure.
@Nabulio85
@Nabulio85 Жыл бұрын
Great explanations, as usual !
@gagiksimonyan3782
@gagiksimonyan3782 Жыл бұрын
Thanks for another useful video, Dmytro
@demidovmaxim1008
@demidovmaxim1008 Жыл бұрын
Every video on this channel is unique and useful. Thank you very much!
@marcink9954
@marcink9954 Жыл бұрын
Great stuff as always. I recommend the forms course, because it's really worth it. super valuable material.
@Doktornikita
@Doktornikita Жыл бұрын
as always on top!
@pointlesspos8440
@pointlesspos8440 Жыл бұрын
Awesome coverage.
@v_korol
@v_korol Жыл бұрын
Amazing! I've been going around this pattern and can't quite figure out when to apply it and how, and after watching your video I got an epiphany! Thank you very much! Keep up the good work, looking forward to the next pattern videos! 🤩❤🙌
@ATTI0822
@ATTI0822 Жыл бұрын
remarkable video. thanks!
@DecodedFrontend
@DecodedFrontend Жыл бұрын
Glad you liked it! :)
@jamesevans6438
@jamesevans6438 Жыл бұрын
Great video, thanks so much, I can imagine there was a lot of work behind the scenes.
@AntonioSantana-ll8il
@AntonioSantana-ll8il Жыл бұрын
I love this tutorials!!! the design patters apply in real life
@pwrDolphin
@pwrDolphin Жыл бұрын
Thanks, Dmytro!
@DecodedFrontend
@DecodedFrontend Жыл бұрын
You are welcome:)
@yaibanoutsukushii
@yaibanoutsukushii 29 күн бұрын
hey, I loved this video, great job. Small question tho: how does this expanation correspond to your other video about the Bridge Pattern? Are these different patterns?
@hubert.t4243
@hubert.t4243 Жыл бұрын
You are just awesome 10/10 ❤
@yuusource2275
@yuusource2275 Жыл бұрын
You are the best!
@DecodedFrontend
@DecodedFrontend Жыл бұрын
Thanks :) Glad you like my content
@Brumry
@Brumry Жыл бұрын
Love your content, really helped me to become a better angular developer, please don't stop :D ... if you are short with Angular content, I would also love to see multiple design patterns and maybe some problems and how you could solve them with different design patterns.
@nanasarathi
@nanasarathi Жыл бұрын
As usual superb 👍👏... Thanks for sharing this 🙏
@DecodedFrontend
@DecodedFrontend Жыл бұрын
You are welcome 😊
@yuriinadilnyi3029
@yuriinadilnyi3029 Жыл бұрын
as usual awesome tutorial)
@DecodedFrontend
@DecodedFrontend Жыл бұрын
Thanks, Yurii ;)
@armenbabayan1458
@armenbabayan1458 Жыл бұрын
Dear Dmytro, thank you very much.
@DecodedFrontend
@DecodedFrontend Жыл бұрын
You are welcome! Thanks for your feedback 😊
@sebastienbruno5565
@sebastienbruno5565 Жыл бұрын
Thx for this useful video !!!!
@DecodedFrontend
@DecodedFrontend Жыл бұрын
Thanks for your feedback! I am glad to hear that you find it useful 😊
@BrockFredin
@BrockFredin 10 ай бұрын
This was a good video.
@pemessh
@pemessh Жыл бұрын
Damn , your content is so awesome. Thank you for the video. This was super helpful and informative.
@faizouaremou9291
@faizouaremou9291 2 ай бұрын
Correct me if I'm wrong, but I really have the impression that the bridge patern is a kind of composition. FormControlDirective uses ControlValueAccessor to synchronize with DOM
@DecodedFrontend
@DecodedFrontend 2 ай бұрын
I think it would be more accurate to say that “the Bridge pattern leverages the composition”. The composition isn't a pattern by itself, it is just a form of relationship between entities, which is utilized by many other design patterns like bridge, strategy, dependency injection, etc Composition is a more generic thing that is used by design patterns to solve more narrow use cases. So, your impression is partly right :)
@user-lb6dc6ci5w
@user-lb6dc6ci5w 8 ай бұрын
Hi, great videos. I have a small question though... I am trying to implement the bridge pattern as aou describe it for a dashboard with widgets, which works great until i dynamically create the widgets. From then on i cannot get them through the "ContentChild" slector tried creating them in different ways (viewcontainerref, ngComponentOutput, ...) but it seems that dynamically creted coponents and contenchild do not match ran across a couple of people who said that contentchild only works for stuff that can be determined at compile time do you know of a way to use the bridge pattern with dynmic omponents?
@AntonioSantana-ll8il
@AntonioSantana-ll8il Жыл бұрын
Could you explain me the differents between strategy and bridge pattern
@sergiocorrenti
@sergiocorrenti 10 ай бұрын
Is there a bug on shared.ts file???? (16:46) .setDisabledState?.(control.disabled) The point after setDisabledState? (.)
@ishumishra8104
@ishumishra8104 Жыл бұрын
Wow, Awesome🎉 Do you have any Udemy Course, on Angular Project using Cool concepts like this ?
@user-sl3zf9ux4d
@user-sl3zf9ux4d Жыл бұрын
👍👍👍👍👍
@khumozin
@khumozin Жыл бұрын
❤️💯
@dogandipcin
@dogandipcin Жыл бұрын
Hello Dymitry, Awesome video thanks for the detailed explanation. I just have a question. Don't understand one part of the implementation of the bridge pattern. Why do you implement PayPalProvider class to PayPalProvider and ApplePayProvider classes?
@DecodedFrontend
@DecodedFrontend Жыл бұрын
Hi! I just realised that after publishing that I made a typo. Of course it had to be PaymentProvider interface and because API of PaymentProvider and PayPalProvider basically the same, the TypeScript did't complain about that... :(
@dogandipcin
@dogandipcin Жыл бұрын
​@@DecodedFrontend Yes, I thought that like that way. However, the behavior of the typescript here is interesting. Yes, PaymentProvider and PayPalProvider basically the same, but I wish TypeScript would at least understand that we are implementing the same class for the PayPalProvider implementation :)
@DecodedFrontend
@DecodedFrontend Жыл бұрын
@dogandipcin yeah... To be honest, I still don't get the motivation to allow "implement" anything like classes in TypeScript :)
@dogandipcin
@dogandipcin Жыл бұрын
@@DecodedFrontend 😃
@brokolililer
@brokolililer Жыл бұрын
Hi, Shouldn't we implement "PaymentProvider" in the 9th minute? We implemented "PaypalProvider" to "ApplePayProvider". Why ? :(
@DecodedFrontend
@DecodedFrontend Жыл бұрын
Oh, it looks like I typed PayPalProvider by mistake and it wasn't caught by the typescript. Yes, you are right! It had to be a PaymentProvider interface of course 🤦Thanks for reporting that
@dontForgetDontForgive
@dontForgetDontForgive Жыл бұрын
Гарні відео, приємно дізнатися, що це ще й твій співвітчизник🇺🇦 Слава Україні!
@DecodedFrontend
@DecodedFrontend Жыл бұрын
Героям слава🇺🇦 дякую за фідбек 🙌🏻
Design Patterns in Angular Source Code - Strategy Design Pattern
12:48
Decoded Frontend
Рет қаралды 16 М.
Change Detection in Angular - Pt.1 View Checking
18:06
Decoded Frontend
Рет қаралды 32 М.
[Vowel]물고기는 물에서 살아야 해🐟🤣Fish have to live in the water #funny
00:53
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 118 #shorts
00:30
Follow @karina-kola please 🙏🥺
00:21
Andrey Grechka
Рет қаралды 26 МЛН
What is Span in C# and why you should be using it
15:15
Nick Chapsas
Рет қаралды 246 М.
TOP 5 Angular Interview Questions and Answers (for experienced, 2020)
21:50
Understand Angular Signals in 20 Minutes
20:17
Igor Sedov
Рет қаралды 6 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,3 МЛН
Advanced #Angular Patterns - ForRoot & ForChild (2021, Decoded)
32:03
Decoded Frontend
Рет қаралды 46 М.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 171 М.
Angular Design Patterns - Bridge [Advanced, 2020]
24:34
Decoded Frontend
Рет қаралды 45 М.
Angular dependency injection in depth -  Dependency providers (2021)
17:19
This is the Only Right Way to Write React clean-code - SOLID
18:23
Bridge Pattern - Design Patterns (ep 11)
52:04
Christopher Okhravi
Рет қаралды 143 М.
Ele Comeu a TERRA da Planta😱 #shorts
0:59
Lucan Pevidor
Рет қаралды 8 МЛН
Jesus papa love ❤️ Devi #jesus #devi
0:33
VIDEOS HOT 🥵
Рет қаралды 6 МЛН
会变色的西施龙凤凤鸣壶#凤鸣壶 #西施壶
0:52
壶棚杯友
Рет қаралды 10 МЛН