Master the Power of Composite Pattern in Rich Domain Modeling

preview_player
Показать описание
The Composite design pattern is one of the most effective tools for tackling complex problems. As demonstrated in this video, the Composite pattern provides an ideal solution for managing one specific aspect of complex object-oriented models, namely to address the problem of applying multiple calculations or rules as one rule.
The essence of the Composite pattern, as demonstrated in this video, is to allow treating individual objects and compositions of objects uniformly. This domain modeling concept becomes a powerful tool when tackling complexity in business rules.
If you take time to walk through the demo from this video, you will witness the process of designing the system in such a way that a single object can do the job of multiple subordinate objects, providing an elegant solution to a serious technical problem.
You will learn that the final design, when viewed through the lens of SOLID principles, underlines the Single Responsibility Principle and Open Closed Principle, to name a few, in a very elegant and natural way. The end result is an obvious simplification of the once complex domain model.
Understanding the Composite pattern and applying it effectively in object-oriented design - that is the set of skills every programmer should possess.

Thank you so much for watching! Please like, comment & share this video as it helps me a ton!! Don't forget to subscribe to my channel for more amazing videos and make sure to hit the bell icon to never miss any updates.🔥❤️

⭐ Learn more from video courses:

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⭐ CONNECT WITH ME 📱👨

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
👨 About Me 👨
Hi, I’m Zoran, I have more than 20 years of experience as a software developer, architect, team lead, and more. I have been programming in C# since its inception in the early 2000s. Since 2017 I have started publishing professional video courses at Pluralsight and Udemy and by this point, there are over 100 hours of the highest-quality videos you can watch on those platforms. On my YouTube channel, you can find shorter video forms focused on clarifying practical issues in coding, design, and architecture of .NET applications.❤️
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⚡️RIGHT NOTICE:
The Copyright Laws of the United States recognize a “fair use” of copyrighted content. Section 107 of the U.S. Copyright Act states: “Notwithstanding the provisions of sections 106 and 106A, the fair use of a copyrighted work, including such use by reproduction in copies or phono records or by any other means specified by that section, for purposes such as criticism, comment, news reporting, teaching (including multiple copies for classroom use), scholarship, or research, is not an infringement of copyright." This video and our youtube channel, in general, may contain certain copyrighted works that were not specifically authorized to be used by the copyright holder(s), but which we believe in good faith are protected by federal law and the Fair use doctrine for one or more of the reasons noted above.

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

Honestly, thank you so much for making those type of videos, as someone who is relatively junior it is hard to find a content that would allow me to level up. Most of the stuffs out there are 50th variation of how to use mediator or create a validation filter, but your videos are golden, they touch real world problems and provide solutions that can be extrapolated to other scenarios aswell.

numnex
Автор

"This is a trick question; you should not like it" 🤣

michaelkoss
Автор

Just wanted to say Thank you, i really do appreciate the kind of content you make.

saifeddinebenromdhane
Автор

Great content, Thanks, I'm motivated to follow you courses in Pluralsight on these topics.

adiazwise
Автор

Excellent video. In business, the discounts or rules for discounts are configured by business people and we don't want any code change or we have a multi tenant application and can't code for every customer. In such scenario the rules get implemented as some policy or a rule set and are stored in text file.

Please consider showing a small example of how to convert this same discount rules to an external, say json/xml, file and load at the start.

hemant-sathe
Автор

Amazing video, this is so helpful as a junior. One question:
2:05 At line 35, 36, 37 you register some formatters, did you make a video on those too?
I see you register them with the interfaces, is it just in case you have to swap the implementation or is there more going on?

ghevisartor
Автор

Hi Zoran, what is your thought on using Strategy Pattern for the above requirement?

SteveNgaiCheeWeng
Автор

Hi Zoran,

I think there is a better implementation that using 'true' Composite pattern. Your code still gets machine states which would be source of bug. Do you have repo url so I can create pull request?

ghostnguyen