Inversion of Control / Hollywood Principle
Version 1.0.0 · Updated 2026-07-28
CORE DEFINITION
Inversion of Control (IoC) is a design principle in object-oriented programming that can be used to reduce the coupling between computer code. The most common way to implement it is Dependency Injection (DI), and another way is called Dependency Lookup.
SCAFFOLDING EFFECT
Reduce cognitive load
Inversion of Control (IoC) is a design principle in object-oriented programming that can be used to reduce the coupling between computer code. The most common way to implement it is Dependency Injection (DI), and another way is called Dependency Lookup.
Anchor fast decisions
Traditional programs actively call libraries (control flow resides in the application); in IoC, the framework holds the main loop and calls application code at appropriate times ("Don't call us, we'll call you"). The control of flow is moved from components to the container/platform, achieving decoupling and pluggability.
MINIMUM ACTION
In progress 0/1Practice this model in one real situation:
account_treeGenealogyexpand_more
menu_bookReferencesexpand_more
Source support: Explicit
- zh.wikipedia.orghttps://zh.wikipedia.org/wiki/%E6%8E%A7%E5%88%B6%E5%8F%8D%E8%BD%ACverified
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS