This is a great explanation. I don’t know that anyone ever clearly told me that we inject objects rather than having the code instantiate them with ‘new Classname’. Thanks!

A programmer by day, author by night. When I put on running tights, I like to imagine I’m a super hero. Creator of Unemploymentville.com. Follow me if you dare.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store