Tell Don't Ask (Law of Demeter)
Supports Pillars:
Technical Excellence
Dependencies on Other Skills:
Refactoring
Definition:
The Law of Demeter is a way to promote loose coupling, by keeping communications between modules simple. When one module only sends messages to another, rather than asking for information, then changes in the callee are less likely to affect the caller.
Triggers:
two-dot code: object.method().anotherMethod()
unused return parameters
avoidable return values
Forces:
?
Organizational Support of this Skill:
?
Resources:
?