Part V: Handling Variations with Design Patterns
Part Overview
In this part, I work through another case study. In this case study, I will consider the requirements for the problem one at a time, rather than specifying every requirement up front. I will describe a system that is currently working when a new requirement comes in that forces me to find the best way to modify the code. I will use this process to present a few new design patterns—one for each new requirement.
Chapter Discusses These Topics 14 The Strategy pattern: How to handle varying algorithms and business rules. 15 The Decorator pattern: How to dynamically add behavior before or after an object's current behavior. 16 The Singleton pattern and the Double-Checked Locking pattern: ...
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.