IoC
IoC
ELI5 — The Vibe Check
IoC is the abbreviation for Inversion of Control. It's the Hollywood Principle: 'Don't call us, we'll call you.' Your code registers itself with a framework, and the framework calls it when needed instead of the other way around.
Real Talk
Inversion of Control container — a framework component that manages object instantiation and dependency wiring. IoC containers use configuration (annotations, decorators, or config files) to automatically create and inject dependencies throughout the application.
When You'll Hear This
"The IoC container handles all the wiring." / "Register the service with the IoC container and it'll be injected wherever needed."
Related Terms
Dependency Injection
Instead of your UserService creating its own DatabaseConnection (tight coupling), you pass the database in from outside: new UserService(db).
Dependency Inversion
Dependency Inversion says high-level code shouldn't depend on low-level code — both should depend on abstractions.
Inversion of Control (IoC)
Inversion of Control is when a framework calls YOUR code instead of you calling the framework. You don't control the flow anymore — the framework does.