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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Dependency Injection and Boundaries

  • Pablo Gonzalez

摘要

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.