DEV Community

loading...

Explain Inversion of Control like I'm five

Amit Merchant
Coder, thinker and an aspiring entrepreneur.
・1 min read

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

Discussion (1)

Collapse
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