An open API service indexing awesome lists of open source software.

https://github.com/7kms/design-pattern


https://github.com/7kms/design-pattern

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# 重读 javascript 设计模式

### 设计模式

1. [原型模式](./prototype/index.md)
2. [单例模式](./singleton/index.md)
3. [策略模式](./strategy/index.md)
4. [代理模式](./proxy/index.md)
5. [迭代器模式](./iterator/index.md)
6. [发布订阅(观察者)模式](./observer/index.md)
7. [命令模式](./command/index.md)
8. [组合模式](./composite/index.md)
9. [模板方法模式](./template/index.md)
10. [享元模式](./flyweight/index.md)
11. [职责链模式](./responsibility/index.md)
12. [中介者模式](./mediator/index.md)
13. [装饰者模式](./decorator/index.md)
14. [状态模式](./status/index.md)
15. [适配器模式](./adapter/index.md)

### 设计原则和编程技巧
1. 单一职责问题
2. 最少知识原则
3. 开放-封闭原则
4. 接口和面向接口编程