Preparer: Chip Salim
Thursday, April 7 2017
Driving Factors:
A Pie
OO Basics
OO Principles
A class should only have 1 reason to change (Single Responsibility Principle)
Don't repeat the same code (DRY Principle)
Depend on abstraction not on concrete classes (Dependency Injection Principle)
Favor composition over inheritance
Encapsulate what varies (Interface Segregation Principle)
Don't call us, we'll call you (Hollywood Principle)
Classes should be open for extension but closed for modification (Open Closed Principle)
Only talk to your friends
Program to interfaces, not implementation (Liskov Substitution Principle)
Strive for loosely coupled designs between objects that interact
Let a DP emerge from your designs
Make DP one of the options in the design
dofactory.com
sourcemaking.com
Feedback
Contribute by learning
Contact me!