Design pattern are beneficial because they describe a problem that occurs repeatedly and explain the solution to the problem in a way that can be used many time over.
The study of patterns can inspire designes to come up with new and unique ideas and format captures knowledge and documents best practices for a domain.
Pattern are not the silver bullet but they can be combined and used in concert to solve large problems that cannot be solved with just one pattern .
-
Factory Method
In this example a logistic API was built which implements a fare calculator.
-
Abstract factory
-
Builder
The example is a notification API which defines several ways to notify.
-
Prototype
-
Singleton - TODO
-
Adapter - TODO
-
Bridge - TODO
-
Composite
-
Decorator - TODO
-
Facade - TODO
-
Flyweight - TODO
-
Proxy - TODO
-
Interpreter - TODO
-
Chain of responsibility - TODO
-
Command - DONE
-
Iterator - TODO
-
Mediator - DOING
-
Memento - TODO
-
Observer - DOING
-
State - TODO
-
Strategy - TODO
-
Template method - TODO
-
Visitor - TODO
- Barrier - TODO
- Active objects - TODO