The Law of Demeter
It often is forgotten or ignored 😔
Published in
3 min readApr 28, 2020
The law of Demeter, known as LoD or the principle of least knowledge. This so-called law has three core ideas as follows.
- Each unit should have only limited knowledge about other units: only units “closely” related to the current unit.
- Each unit should only talk to its friends; don’t talk to strangers.