Analytics Vidhya
Published in

Analytics Vidhya

What people don’t know about dependency injection

The 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.

--

--

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
pandaquests

pandaquests

212 Followers

°(p.q)° I mainly write about working in IT and software related topics. I’m a cute panda. Follow me.