A design pattern in which objects receive their dependencies from external sources rather than creating them internally, promoting loose coupling, easier testing, and clear composition roots. Effective use of this practice reduces bugs in production and supports a culture of quality-driven development.
References:
- Wikipedia: Dependency Injection
- Martin Fowler: Inversion of Control Containers and the Dependency Injection pattern
- Design Patterns
- Software Architecture
- Testing
- Inversion of Control
- Composition Root
rules/dependency-injection-rules.yml— Rules and guidance for applying DI.capabilities/dependency-injection-capabilities.md— Capabilities the pattern delivers.vocabulary/dependency-injection-vocabulary.json— Controlled vocabulary.json-ld/dependency-injection.jsonld— Linked-data description.
- Created: 2025-01-01
- Modified: 2026-04-28