Notas
Intro to design patterns

Conteúdo das notas (2)
Página 1
- Take what varies and "encapsulate" it so it won't affect the rest of your code. The result? Fewer unintended consequences from code changes and more flexibility in your systems!
Multiple uses of Interface: Contract, Decoupling, Polymorphism, multiple inheritances.
decoupling means not highly dependent with other classes.
Clients should always be decoupled with Interfaces(as a bridge between client and implementation) and not directly coupled with implementations.

Página 2
- Favor composition over the interface
- Program to Interface, not to the implementation
- Strategy - defines a family of algorithms, encapsulate each one of them and make them interchangeable. Strategy lets algorithm vary independently from clients that we use it
Informações
- Descrição
- Notas sobre Intro to design patterns, criado por Ravi Allishe em 18-07-2019.
- Criado por
- Ravi Allishe
- Visualizações
- 0
- Avaliação