Dependency injection

/dɪˈpɛndənsi ɪnˈdʒɛkʃən/ noun phrase

A design pattern where an object receives its dependencies from external sources rather than creating them internally. This promotes loose coupling and makes code more testable and maintainable.

The term combines 'dependency' from Latin 'dependere' meaning to hang from, with 'injection' from Latin 'injicere' meaning to throw in. The pattern was formalized in object-oriented programming during the 1990s as part of inversion of control principles.

📖 Full word page — etymology, 47 translations, audio 🔑 Get Free API Key — 50 lookups/day 📚 Read the Docs — integrate Word Orb