DEV Community

Discussion on: Explain Dependency Injection (DI) like I am five.

 
tam360 profile image
Mirza

I guess the main challenge of using DI is having a solid knowledge of interface/class's internal workings. Since DI does all the things behind the curtain, it becomes annoying when one starts using them without understanding. This I think is true in the case of debugging.

Thread Thread
 
brandinchiu profile image
Brandin Chiu

For sure.

I personally think the pros outweigh the cons, but to each their own.