Description | 中文说明
abbreviation | name |
---|---|
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 |
including two parts:
- 1.the definition of each principle
- 2.example for the actual situation , BadXXX is the bad code , GoodXXX is the good code ( better than the former, not the best ).