The strategy pattern is a behavioral pattern that enables selecting an algorithm at runtime. This post will demonstrate a classical OOP pattern and a more pythonic/functional strategy pattern.
[Design Pattern] Strategy
· 4 min read
The strategy pattern is a behavioral pattern that enables selecting an algorithm at runtime. This post will demonstrate a classical OOP pattern and a more pythonic/functional strategy pattern.