Notizen
Intro to design patterns

Inhalt der Notizen (2)
Seite 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.

Seite 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
Informationen
- Beschreibung
- Notiz am Intro to design patterns, erstellt von Ravi Allishe am 18/07/2019.
- Erstellt von
- Ravi Allishe
- Aufrufe
- 0
- Bewertung