Design Patterns
notes
it seems like “design patterns” are not exclusively restricted to ‘object-oriented-programming’, but this is the context in which I have learned such design.
there are three main categories of Design Patterns as decreed by the ‘Gang of Four’1 (the authors of a seminal work Design Patterns | Elements of Reusable Object-Oriented Sofware.
a. Creational Patterns b. Structural Patterns c. Behavioural Patterns
in turn, each of these contain more patterns:
a. Creational:
- Factory Method
- Abstract Factory
- Builder
- Prototype
- Singleton
b. Structural
- Adapter
- Bridge
- Composite
- Decorator
- Façade
- Flyweight
- Proxy
c. Behavioural:
- Interpreter
- Template Method
- Chain of Responsibility
- Command
- Iterator
- Mediator
- Memento
- Observer
- State
- Strategy
- Visitor
Creational
Factory Method
Abstract Factory
Builder
Prototype
Singleton
Structural
Adapter
Bridge
Composite
Decorator
Façade
Flyweight
Proxy
Behavioural:
Interpreter
Template Method
Chain of Responsibility
Command
Iterator
Mediator
Memento
Observer
State
Strategy
Visitor
-
Ralph Johnson, Richard Helm, Erich Gamma, and John Vlissides. ↩︎