Strategy Pattern vs Dependency Injection

  • Strategy Pattern focuses on intent and encourages you to create an interface with different implementations that obey the same behavioral contract
  • Dependency Injection is more about just having an implementation of some behavior and providing it