本篇用于搬运聚合其他博主记录,用于自身周期性复习。
- Don’t Repeat Yourself (DRY)
- Keep It Simple, Stupid (KISS)
- Program to an interface, not an implementation
- Command-Query Separation (CQS) – 命令-查询分离原则
- You Ain’t Gonna Need It (YAGNI)
- Law of Demeter – 迪米特法则
- 面向对象的S.O.L.I.D 原则
- Common Closure Principle(CCP)– 共同封闭原则
- Common Reuse Principle (CRP) – 共同重用原则
- Hollywood Principle – 好莱坞原则
- High Cohesion & Low/Loose coupling & – 高内聚, 低耦合
- Convention over Configuration(CoC)– 惯例优于配置原则
- Separation of Concerns (SoC) – 关注点分离
- Design by Contract (DbC) – 契约式设计
- Acyclic Dependencies Principle (ADP) – 无环依赖原则
- SRP(Single Responsibility Principle)单一职责原则
- OCP(Open Close Principle)开闭原则
- LSP(Liskov Substitution Principle)里氏替换原则
- LoD(Law of Demeter ( Least Knowledge Principle))迪米特法则(最少知道原则)
- ISP(Interface Segregation Principle)接口分离原则
- DIP(Dependency Inversion Principle)依赖倒置原则
网友评论