law of demeter
Word Rarity
Very rare
Frequency: Zipf frequency 2.42 in modern English
21
Scrabble Score
12
Letters
2
Syllables
10
Unique Chars
Meaning
name
A design guideline for developing particularly object-oriented programs that mandates loose coupling between objects.
Example Sentences
- "An adaptive program contains only hooks into the class structure and normally does not fully encode the details of the class structure. This idea of not duplicating the class structure is an application of the key idea behind the Law of Demeter."
- "According to the Law of Demeter, the second approach is better because the summary screen sends a message only to an object that is returned by one of its methods […]"
Etymology
Named for its origin in the Demeter Project, an adaptive programming and aspect-oriented programming effort, itself named after the Greek goddess Demeter.