https://zhuanlan.zhihu.com/p/24614363

    单一职责(SRP)(Single Responsibility Principle)

    开放-关闭原则(OCP)(Open-Closed Principle)

    里氏替换原则 (LSP)(Liskov Substitution Principle)


    依赖倒转原则 (DIP)(Dependence Inversion Principle)

    接口隔离原则(ISP) (Interface Segregation Principle)

    迪米特法则(LOD)(Law Of Demeter)

    组合/聚合复用原则(CRP) (Composite/Aggregate Reuse Principle)