Why is it called dependency injection?
I find it much easier to remember definitions of concepts and terms if I can somehow link it to an explanation or story behind its name. My naming stories may not always be historically accurate or especially exciting but they work for me so maybe you’ll find them useful too.
Why is dependency injection called dependency injection?
you **inject** that dependency into your class via its constructor arguments like this:
That wasn’t very intuitive for me the first time I came across the term…so I promptly forgot it until I had to deal with it again while getting acquainted with AngularJS.
Anything amiss? Comment/feedback is always welcome.