Mapa mental
Designing
Conteúdo do mapa
Designing
SOLID Principles
- Single Responsibility Principle
- A class should have only 1 reason to change. A class should also only have a single responsibility
- Open/Closed Principle
- A class should be open for extension, but closed for modification. Should allow to extend functionalities, but not allow modifications inside the class
- Liskov Substitution Principle
- A derived class should be able to substitute for the parent class
- Interface Segregation Principle
- Large interfaces should be separated into smaller ones, so that you don't have to implement methods you don't need to use.
- Dependency Inversion Principle
- Classes should have to rely on interfaces to depend on some other class?
- Single Responsibility Principle