Skip to content

kakaCat/learn-design-pattern

Repository files navigation

learn-design-pattern

中文 英文 模式
1.工厂方法模式 Factory Method Pattern 创建型
2.抽象工厂模式 Abstract Factory Pattern 创建型
3.建造者模式 Builder Pattern 创建型
4.原型模式 Prototype Pattern 创建型
5.单例模式 Singleton Pattern 创建型
6.适配器模式 Adapter Pattern 结构型
7.桥梁模式/桥接模式 Bridge Pattern 结构型
8.组合模式 Composite Pattern 结构型
9.装饰模式 Decorator Pattern 结构型
10.门面模式/外观模式 Facade Pattern 结构型
11.享元模式 Flyweight Pattern 结构型
12.代理模式 Proxy pattern 结构型
13.责任链模式 Chain of Responsibility Pattern 行为型
14.命令模式 Command Pattern 行为型
15.解释器模式 Interpreter Pattern 行为型
16.迭代器模式 Iterator Pattern 行为型
17.中介者模式 Mediator Pattern 行为型
18.备忘录模式 Memento Pattern 行为型
19.观察者模式 Observer Pattern 行为型
20.状态模式 State Pattern 行为型
21.策略模式 Strategy Pattern 行为型
22.模板方法模式 Template Method Pattern 行为型
23.访问者模式 Visitor Pattern 行为型

责任链和观察者区别

  • 责任链 (拦截,过滤)
    • 拦截 (并不需要全部执行)
    • 过滤 ()
  • 观察者(事件)
    • 事件 (需要每一个子集都执行)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages