Design Patterns
Updated 2026-07-30
Summary
Design Patterns: Elements of Reusable Object-Oriented Software (1994) is a software engineering book describing software design patterns. The book was written by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides, with a foreword by Grady Booch. The book is divided into two parts, with the…
Definition
Proposed by Christopher Alexander and popularized by the Gang of Four. It summarizes a set of common, reusable solutions (such as Singleton pattern, Factory pattern) for recurring problems in software development. Scaffold use: - Experience routinization: Don't reinvent the wheel. When solving a problem, first search for existing mature "design patterns". This is a shortcut from novice to expert.
Introduction
How to use
- Experience routinization: Don't reinvent the wheel. When solving a problem, first search for existing mature "design patterns". This is a shortcut from novice to expert.
Mechanism
Reusable, time-tested "problem-solution" templates: for recurring situations in software design, provide proven structures and role assignments, making communication more efficient and changes more stable. GoF categorizes them into creational, structural, and behavioral patterns.
Practice
In progress 0/4Practice this model in one real situation:
Cases
- Use Singleton to manage global configuration; use Strategy pattern to switch algorithms; use Decorator to add functionality dynamically without modifying the original class.
Common pitfalls
- Using patterns for the sake of using them leads to over-complexity; treating patterns as a silver bullet and ignoring simple solutions; misusing patterns can increase coupling.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Design_Patternsverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS