Chain of Responsibility is one of the less-frequently used design patterns, but also one of the most useful patterns. It helps compose simple decision-making objects into a chain structure, so that the objects get the opportunity to decide in order of their appearance. The first object to successfully complete the task gets all the credits, and its response becomes the result of the entire chain.
That is the theory, and in this video you will learn the practical aspects of applying and implementing the Chain of Responsibility design pattern. We will address the issue of combining simple IComparer instances to build a multi-level sorting comparer object which can be used in contexts where only one IComparer object can be supplied.
Video courses on design patterns:
Design Patterns in C# Made Simple ► https://codinghelmet.com/go/design-patterns
Refactoring to Patterns ► https://codinghelmet.com/go/refactoring-to-patterns
Creating Objects ► https://codinghelmet.com/go/tactical-design-patterns-in-net-creating-objects
Managing Responsibilities ► https://codinghelmet.com/go/tactical-design-patterns-in-net-managing-responsibilities
Control Flow ► https://codinghelmet.com/go/tactical-design-patterns-in-net-control-flow
Chapters:
00:00 Intro
01:10 Understanding the need for the Chain of Responsibility
02:55 Implementing the Chain of Responsibility
05:20 Using the Chain of Responsibility
06:53 Implementing reusable partial comparers
Other video courses:
Beginning Object-oriented Programming with C# ► https://codinghelmet.com/go/beginning-oop-with-csharp
Collections and Generics in C# ► https://codinghelmet.com/go/collections-and-generics-in-cs
Making Your C# Code More Object-oriented ► https://codinghelmet.com/go/making-your-cs-code-more-oo
Courses at Pluralsight ► https://codinghelmet.com/go/pluralsight
Courses at Udemy ► https://codinghelmet.com/go/udemy
Additional videos:
The Fastest Way to Modify a List in C# ► https://youtu.be/0oSN65eM-tc
Coding with GitHub Copilot – Beginner to Master ► https://youtu.be/B9DKv09IfT4
Want to Start with DDD? Try Ubiquitous Language First! ► https://youtu.be/_zWMjMUHinc
Using C# Record Types ► https://youtu.be/VouNkrgkH78
Covariance and Contravariance in C# ► https://youtu.be/Wp5iYQqHspg
How do Virtual Functions Work? ► https://youtu.be/b0IDTWoaUJ0
Practical Design playlist at YouTube ► https://youtube.com/playlist?list=PLSDYwLgFqaX78eEg_YKs0wHmOMi7_ggZr
source
Your pluralsight and udemy courses are fire! Thanks for all the great content!
I like how practical your examples are!
Simple explanations! Watched your Course on functional programming on udemy in 2019 or so, changed my life! Program in go these days but still these videos are so enjoyable and informative that cant pass on.
Great video, as always. 🙌 Greetings from InterVenture.