Skip to content

sahedbs23/Head-First-Design-Patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Head-First-Design-Patterns

Design Principles

  1. STRATEGY Design Pattern.

    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.

    1. Identify the aspects of your application that very and separate them from what stays the same. Page 9
      1. Reference Page 9 (Hard Copy)
    2. Page 11: Program to an Interface, not an Implementation
      1. Reference Page 11 (Hard Copy)
    3. Favor composition over Inheritance
      1. Reference Page 23
  2. The Observer Pattern

    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.

    1. Strive for loosely coupled designs between objects that interact.