¡GoConqr estrena diseño! Cuéntanos qué te parece.

Apuntes

Intro to design patterns

Ravi Allishe Inglés 2 páginas

Intro to design patterns

Contenido del apunte (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.

Intro to design patterns

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

Información

Descripción
Apunte sobre Intro to design patterns, creado por Ravi Allishe el 18/07/2019.
Creado por
Ravi Allishe
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?