Design patterns – Part 1: Strategy pattern
One of the simplest and most commonly used patterns is definitely strategy pattern. We cannot pass a boring definition, so here you go:
The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy algorithm vary independently from clients that use it.
You will find out that all strategy pattern really enforces [...]
