Dependency injection

noun phrase

Definition

A design pattern where objects receive their dependencies from an external source rather than creating them internally. Improves testability and decoupling.

In a sentence

"By using dependency injection, we can swap the real database for a test double in unit tests without changing the service code."

Frequently asked questions

What does "Dependency injection" mean in IT?

A design pattern where objects receive their dependencies from an external source rather than creating them internally. Improves testability and decoupling.

Is "Dependency injection" an acronym?

No — "Dependency injection" is not an acronym or abbreviation. It's used as a standalone term (noun phrase) in IT conversations and documentation.

How do you pronounce "Dependency injection"?

There's no non-obvious pronunciation for "Dependency injection" — it's read as it's spelled.

← Back to glossary