Acyclic Dependencies Principle (ADP). 无环依赖原则
Command-Query Separation (CQS). 命令-查询分离原则
Common Reuse Principle (CRP). 共同重用原则
Convention over Configuration(CoC). 惯例优于配置原则
Dependency Inversion Principle (DIP). 依赖倒置原则
Design by Contract (DbC). 契约式设计
Don’t Repeat Yourself (DRY).
Hollywood Principle. 好莱坞原则
High Cohesion & Low/Loose coupling &. 高内聚, 低耦合
Law of Demeter. 迪米特法则
LeBlanc’s law: Later equals never. 勒布朗法则:稍后等于永不。
Liskov substitution principle (LSP). 里氏代换原则
Interface Segregation Principle (ISP). 接口隔离原则
Open/Closed Principle (OCP). 开闭原则
Program to an interface, not an implementation.
Separation of Concerns (SoC). 关注点分离
Single Responsibility Principle (SRP) . 单一职责原则
Ward’s principle: You know you are working on clean code when each routine turns out to be pretty much what you expected.
沃德原则:如果每个例程都让你感到深合己意,那就是整洁代码。
You Ain’t Gonna Need It (YAGNI).