Analytics Vidhya
Published in

Analytics Vidhya

What people don’t know about dependency injection

he main goal of dependency injection (DI) is decoupling — you decouple a certain class from the client that is using that class. This is usually done in conjunction with interface-based-programming.

In this article I’ll explain what DI is really all about and show you different ways of how to do it and discuss the advantages and disadvantages. At the end I’ll also explain the limitations of DI.



Analytics Vidhya is a community of Analytics and Data Science professionals. We are building the next-gen data science ecosystem

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

°(p.q)° We are group of software engineers with a combined professional working experience of over 100 years in IT. Follow us.