GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Notizen

Intro to design patterns

Ravi Allishe Englisch 2 Seiten

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.

Intro to design patterns

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

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck