Law of Demeter
Version 1.0.0 · Updated 2026-07-30
CORE DEFINITION
Also known as the 'principle of least knowledge'. An object should have as little knowledge as possible about other objects. Only talk to your immediate friends, do not talk to 'friends of friends'.
SCAFFOLDING EFFECT
Reduce cognitive load
- Decoupling thinking: In a company, do not command over the head of subordinates, do not interfere in details across departments. Reducing the coupling between modules (departments) allows the system to avoid total collapse during local chaos.
Anchor fast decisions
Objects should only communicate with immediate friends, not 'friends of friends', to reduce coupling.
MINIMUM ACTION
In progress 0/1Practice this model in one real situation:
account_treeGenealogyexpand_more
menu_bookReferencesexpand_more
Source support: Explicit
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Law_of_Demeterverified
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