-
The strategy design pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
- Identify the aspects of your application that
very
andseparate them
from whatstays the same
. Page 9- Reference Page 9 (Hard Copy)
- Page 11: Program to an
Interface
, not anImplementation
- Reference Page 11 (Hard Copy)
- Favor
composition
overInheritance
- Reference Page 23
- Identify the aspects of your application that
-
The Observer pattern defines a one-to-many dependency between objects so that when one object changes state, all of it's dependents are notified and updated automatically.
Strive for loosely coupled designs between objects that interact.
-
Notifications
You must be signed in to change notification settings - Fork 0
sahedbs23/Head-First-Design-Patterns
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Head First Design Patterns