LoD Ruleset
The LoD (Law of Demeter) set of rules for programming suggests that when developing software, interactions between different components of a system should be limited.
According to LoD rules, every component in your system must:
- Have limited knowledge of the operation and functionality of other modules and components.
- Interact only with those components that are allowed and be isolated from working with unfamiliar modules.
See also
-
principle
SOLID,
which sets guidelines for OOP-based software -
principle
DRY,
which is the division of software into small components -
principle
KISS,
which involves abandoning the complication of software -
principle
YAGNI,
which involves the rejection of redundant software functionality -
principle
CQS,
which specifies only one command for each function -
responsibility separation principle,
which is used in software development