Learning the Bridge Pattern: Deriving It
Now that you have been through the problem, we are in a position to derive the Bridge pattern together. Doing the work to derive the pattern will help you to understand more deeply what this complex and powerful pattern does.
Let's apply some of the basic strategies for good object-oriented design and see how they help to develop a solution that is very much like the Bridge pattern. To do this, I will be using the work of Jim Coplien[4] on commonality and variability analysis.
[4] Coplein, J., Multi-Paradigm Design for C++. Reading, Mass.: Addison-Wesley, 1998.
Design patterns are solutions that occur again and again.Design patterns are solutions that have recurred in several problems and have therefore ... |
Get Design Patterns Explained: A New Perspective on Object-Oriented Design now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.