Mostly fun stuff
Project maintained by theo-pnv
Hosted on GitHub Pages — Theme by mattgraham
Design pattern - Strategy
Intent: Capture abstraction in interface, bury implementation details in derived classes.
Example: Quicksort is better than Bubblesort for large datasets.
- Often reduces list of conditionals
- Avoids duplicate code
- Keeps class changes from forcing other class changes
- Can hide complicated code from the user
- Increased number of objects / classes.