Design Patterns: Strategy |
|
This is the second of an eight part series where Robert is joined by Phil Japikse to discuss design patterns. A design pattern is a best practice you can use in your code to solve a common problem. In this episode, Phil demonstrates the Strategy pattern. This pattern enables an algorithm's behavior to be selected at runtime.
Resources: - Sample code: https://github.com/skimedic/presentations - Design Patterns: Elements of Reusable Object-Oriented Software book: https://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612 - Head First Design Patterns book: https://www.amazon.com/Head-First-Design-Patterns-Brain-Friendly/dp/0596007124/ |