参考:time.geekbang.org/column/arti…
| 1 | 不要重复自己 | Don't Repeat Yourself |
| 2 | 保持简单 | Keep It Simeple, Stupid |
| 3 | 面向接口编程 | Program to an interface, not an implementation |
| 4 | 避免过度设计 | Yon Ain't Gonna Need It |
| 5 | 迪米特法则 | Law of Demeter |
| 6 | 单一职责 | Single Responsibility Principle |
| 7 | 开闭原则 | Open/Close Principle |
| 8 | 里氏替换 | Liskov substitution principle |
| 9 | 接口隔离原则 | Interface Segregation Principle |
| 10 | 依赖倒置原则 | Denpendency Inversion Principle |
| 11 | 共同封闭原则 | Common Closure Principle |
| 12 | 共同重用原则 | Connon Resue Principle |
| 13 | 好莱坞原则 | Hollywood Principle |
| 14 | 高内聚,低耦合 | High Conhesion & Low/Loose coupling |
| 15 | 惯例优于配置 | Convention over Configuration |
| 16 | 关注点分离 | Separation of Concerns |
| 17 | 契约式设计 | Design by Contract |
| 18 | 无环依赖 | Acyclic Dependencies Principle |