A pattern is a successful or efficient solution to a recurring problem within a context
There GoF design pattern has 23 design patterns and 7 object-oriented principles.
GoF(Gang of Four) have designed 7 Object-Oriented principles and 23 design patterns since 1994. The purpose of creating this project is to collect knowledge of design patterns and prevent forgiving them in the future.
I hope the project can help you study design patterns easily and help you upgrade knowledge or attain better jobs.
- you need open Idea;
- choose File -> open... -> choose this project to open
Documentation: doc/design-principle
5 design patterns
Pattern name | Path |
---|---|
1.Singleton Pattern | creation/Singleton |
2.Builder Pattern | creation/Builder |
3.Abstract Factory Pattern | creation/AbstractFactory |
4.Factory Method Pattern | creation/FactoryMethod |
5.Simple Factory Method Pattern | creation/SimpleFactory |
11 Behavior Patterns
Pattern name | Path |
---|---|
1.Template Method | behavior/Template Method |
2.Strategy | behavior/Strategy |
3.Chain Of Responsibility | behavior/Chain Of Responsibility |
4.Command | behavior/Command |
5.State | behavior/State |
6.Observer | behavior/Observer |
7.Mediator | behavior/Mediator |
8.Iterator | behavior/Iterator |
9.Mediator | behavior/Mediator |
10.Memento | behavior/Memento |
11.Interpreter | behavior/Interpreter |
7 Structure Patterns
Pattern name | Path |
---|---|
1.Proxy | structure/Proxy |
2.Adapter | structure/Adapter |
3.Bridge | structure/Bridge |
4.Decorator | structure/Decorator |
5.Facade | structure/Facade |
6.Flyweight | structure/Flyweight |
7.Composite | structure/Composite |
Tips:If there is any copyright issue, delete it at any time
- design-patterns.readthedocs
- c.biancheng.net/design_pattern/ (recommend)
- 24 design patterns (author: Sunny)
Email: [email protected] Slogan: Break knowledge silos