DEV Community

Amit Merchant
Amit Merchant

Posted on

Explain Inversion of Control like I'm five

I always find it difficult to understand the topic of inversion of control. Can anyone here explain it in simple terms?

Top comments (1)

kspeakman profile image
Kasey Speakman

So, based on this quote from Martin Fowler.

Inversion of Control is too generic a term, and thus people find it confusing. As a result with a lot of discussion with various IoC advocates we settled on the name Dependency Injection.

I'll refer you to this ELI5.

Explain dependency injection like I'm five