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

  1. Author writes about design pattern in a book.
  2. Book becomes well read, possibly a best-seller.
  3. Design pattern enters public conscious, gains mind share
  4. Design pattern gets used. It works well.
  5. Design pattern gets over-used. It becomes panacea.
  6. Different author writes "design pattern considered harmful"
  7. Design pattern becomes an anti-pattern.
  8. Different author becomes famous, writes book full of new design patterns..

Made with Slides.com