Strategy: Introduction

Get a brief introduction to the Strategy design pattern.

The Strategy design pattern allows us to write maintainable code in situations where conditional logic needs to be applied. Instead of placing a specific piece of logic under a specific condition in the code, we move each of such pieces of logic into its own ...