1.1 SOLID
S - 单一职责原则 Single Responsibility Principle
O - 开闭原则 Open-Closed Principle
L - 里氏替换原则 Liskov Substitution Principle
I - 接口隔离原则 Interface Segregation Principle
D - 依赖倒置原则 Dependency Inversion Principle
1.2 DRY (Don’t Repeat Yourself)
1.3 YAGNI (You Aren’t Gonna Need It)
1.4 KISS (Keep It Simple, Stupid)
2. 设计模式
2.1 创建型模式
2.2 结构型模式
扫描二维码关注公众号,回复:
5395256 查看本文章
2.3 行为型模式
参考文献:
-
KISS, DRY, YAGNI and More. The 7 Acronyms Every Developer Should Know
-
5 Principles that will make you a SOLID JavaScript Developer