Chapter 3. The Purpose of Design Patterns
Visitor, Strategy, Decorator. These are all names of design patterns that weâll deal with in the upcoming chapters. However, before taking a detailed look at each of these design patterns, I should give you an idea about the general purpose of a design pattern. Thus in this chapter, we will first take a look at the fundamental properties of design patterns, why you would want to know about them and use them.
In âGuideline 1: Understand the Importance of Software Designâ, I already used the term design pattern and explained on which level of software development you use them. However, I have not yet explained in detail what a design pattern is. That will be the topic of âGuideline 11: Understand the Purpose of Design Patternsâ: you will understand that a design pattern has a name that expresses an intent, introduces an abstraction that helps to decouple software entities, and has been proven over the years.
In âGuideline 12: Beware of Design Pattern Misconceptionsâ, I will focus on several misconceptions about design patterns and explain what a design pattern is not. I will try to convince you that design patterns are not about implementation details and do not represent language-specific solutions to common problems. I will also do my best to show you that they are not limited to object-oriented programming nor to dynamic polymorphism.
In âGuideline 13: Design Patterns Are Everywhereâ, I will demonstrate that itâs hard ...
Get C++ Software 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.