
#26 Dependency Injection - Why Do We Even...
Happy Path Programming
00:00
Dependency Injection - Inversion of Control
Inversion of control was the original name for dependency injection. It used to be that you would instantiate an object and pass an instance explicitly to the thing that needed it. Instead, inversion of control inverted that ol and said, no, there is going to be this context that is going to give you what you need,. instead of you explicitly passing them. I feel like when i came across that term initially, i found it a little confusing, and i still do, because it doesn't feel inverted.
Transcript
Play full episode