Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. Dependency
injection (DI) in object-oriented computer programming is a technique
that indicates to a part of a program which other parts it can use, i.e.
to supply an external dependency, or reference, to a software component.
In technical terms, it is a design pattern that separates behavior from
dependency resolution, thus decoupling highly dependent components.
Developers of software strive to reduce dependencies between components
for various reasons. This leads to a new problem, though: How can a
component know all the other components it needs to fulfill its purpose?