The Strategy Pattern in Ruby
The Strategy pattern allows you to provide different variations of an algorithm by injecting them as dependencies.
It’s similar to the Template Method pattern which achieves the same thing using inheritance instead.
Youtube link: https://youtu.be/9A1PDeVCTsM
Post a comment