Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M2224

Design Patterns

Design Patterns
CreateHigh supportDesign Thinking
Included
account_tree

Updated 2026-07-30

Loading revision record…

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.

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/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

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.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Design_PatternsZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS