Law of Demeter

Hello, you have come here looking for the meaning of the word Law of Demeter. In DICTIOUS you will not only get to know all the dictionary meanings for the word Law of Demeter, but we will also tell you about its etymology, its characteristics and you will know how to say Law of Demeter in singular and plural. Everything you need to know about the word Law of Demeter you have here. The definition of the word Law of Demeter will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofLaw of Demeter, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

English

Etymology

Named for its origin in the Demeter Project, an adaptive programming and aspect-oriented programming effort, itself named after the Greek goddess Demeter.

Proper noun

Law of Demeter

  1. (software, object-oriented programming) A design guideline for developing particularly object-oriented programs that mandates loose coupling between objects.
    Synonyms: LoD, principle of least knowledge
    • 1996, Karl J. Lieberherr, Adaptive Object-oriented Software: The Demeter Method with Propagation Patterns, Pws Publishing Company, →ISBN:
      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.
    • 1998, Scott W. Ambler, Building Object Applications that Work: Your Step-by-Step Handbook for Developing Robust Systems with Object Technology, Cambridge University Press, →ISBN, page 249:
      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 []

Translations

Further reading