This a pedantic and unnecessary flex of some trivia knowledge.
Pragmatism is the best approach in articles like this since someone reading an article like this wants practical information, not some drawn out and academic description of IOC and DI.
Well, I guess, for you and your downvoting peers wouldn't matter if the article used the term "generics" or "functional programming" instead of DI. It's all academic pedantry for some :)
I can understand why they where swept together though. Inversion of control is just: depend on, but don't create yourself. And DI is just a method of providing those dependencies.
No. IoC is a generic term meaning rather than having the application call the methods in a framework, the framework calls implementations provided by the application. IoC is synonym for "framework"
A single another class can be a very small framework. DI is not an "implementation of IoC". As I explained, IoC is a very general term, a term which was used long before DI became a thing, and doesn't capture the essence of DI at all. DI doesn't "invert" any sort of "control". It injects dependencies.
The article is well written, incredibly detailed, and shows the author put a great deal of effort into trying to help others use Spring Framework. It's amazing, especially for junior developers. It's too bad you couldn't see past your own ego, you probably could learn a lot from it.
-12
u/Necessary-Conflict Jan 30 '20
I stopped reading at the point where "inversion of control" was treated as a synonym for "dependency injection". It's not.
https://stackoverflow.com/questions/6550700/inversion-of-control-vs-dependency-injection