October 2018
Intermediate to advanced
224 pages
5h 22m
English
The purpose of Dependency Injection (DI), is that the flow of control within the application is not controlled by the application but by the underlying framework. Here are some common DI frameworks and while this book isn't about telling you how to develop, I thought pointing this out will help with your overall development process:
I like using DI because it allows me to loosely couple code and update smaller pieces of code in the long run. It pairs itself great with the DevOps process I will discuss in the next chapter. It help with unit testing as you can use mocks to generate the implementation of the injected object.
There are three types of DI: