DESIGN PATTERNS

DESIGN PATTERNS

"A pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in such a way that you can use this solution a million times over, without ever doing it the same way twice."
- Christopher Alexander

KOMMUNIKATION
Software Design Patterns are sort of recipes for building maintainable and reusable code.
Before software can be reusable it first has to be usable .
- Ralph Johnson

TIGHT COUPLING


De klassiske
Abstract Factory
Builder
Factory Method
Prototype
Singleton
Adapter
Bridge
Composite
Decorator
Facade
Flyweight
Proxy Chain of Responsibility Command Interpreter Iterator Mediator Memento Observer State Strategy Template Visitor
DESIGN PATTERNS CATEGORIZED
- Creational
- Structural
- Behavioural
DESIGN PATTERNS CATEGORIZED
Creational:
Abstract Factory
Builder
Factory Method
Prototype
Singleton
Structural:
Adapter
Bridge
Composite
Decorator
Facade
Flyweight
Proxy
Behavioral:
Chain of Responsibility Command Interpreter Iterator Mediator Memento Observer State Strategy Template Visitor

bonus:
LIFE CYCLE of a design pattern
- Author writes about design pattern in a book.
- Book becomes well read, possibly a best-seller.
- Design pattern enters public conscious, gains mind share
- Design pattern gets used. It works well.
- Design pattern gets over-used. It becomes panacea.
- Different author writes "design pattern considered harmful"
- Design pattern becomes an anti-pattern.
- Different author becomes famous, writes book full of new design patterns..
DESIGN PATTERNS
By tbsatordbogendotcom
DESIGN PATTERNS
- 117
