Dependency Injection and Boundaries
摘要
Dependency injection (DI) is one of those topics that are widely misunderstood and prone to over-engineering, which adds complexity. In this chapter, I’ll attempt to explain what DI is in the simplest of terms and provide guidance of when and when not to use it.