"Law of Demeter" meaning in English

See Law of Demeter in All languages combined, or Wiktionary

Proper name

Etymology: Named for its origin in the Demeter Project, an adaptive programming and aspect-oriented programming effort, itself named after the Greek goddess Demeter. Head templates: {{en-proper noun|head=Law of Demeter}} Law of Demeter
  1. (software, object-oriented programming) A design guideline for developing particularly object-oriented programs that mandates loose coupling between objects. Categories (topical): Object-oriented programming, Software Synonyms: LoD, principle of least knowledge Translations (software design guideline): Gesetz von Demeter [neuter] (German), Demeter Yasası (Turkish)

Alternative forms

Download JSON data for Law of Demeter meaning in English (3.2kB)

{
  "etymology_text": "Named for its origin in the Demeter Project, an adaptive programming and aspect-oriented programming effort, itself named after the Greek goddess Demeter.",
  "head_templates": [
    {
      "args": {
        "head": "Law of Demeter"
      },
      "expansion": "Law of Demeter",
      "name": "en-proper noun"
    }
  ],
  "lang": "English",
  "lang_code": "en",
  "pos": "name",
  "senses": [
    {
      "categories": [
        {
          "kind": "other",
          "name": "English entries with incorrect language header",
          "parents": [
            "Entries with incorrect language header",
            "Entry maintenance"
          ],
          "source": "w"
        },
        {
          "kind": "other",
          "name": "English entries with language name categories using raw markup",
          "parents": [
            "Entries with language name categories using raw markup",
            "Entry maintenance"
          ],
          "source": "w"
        },
        {
          "kind": "other",
          "name": "English terms with non-redundant non-automated sortkeys",
          "parents": [
            "Terms with non-redundant non-automated sortkeys",
            "Entry maintenance"
          ],
          "source": "w"
        },
        {
          "kind": "topical",
          "langcode": "en",
          "name": "Object-oriented programming",
          "orig": "en:Object-oriented programming",
          "parents": [
            "Programming",
            "Computing",
            "Software engineering",
            "Technology",
            "Computer science",
            "Engineering",
            "Software",
            "All topics",
            "Sciences",
            "Applied sciences",
            "Media",
            "Fundamental",
            "Communication"
          ],
          "source": "w"
        },
        {
          "kind": "topical",
          "langcode": "en",
          "name": "Software",
          "orig": "en:Software",
          "parents": [
            "Computing",
            "Media",
            "Technology",
            "Communication",
            "All topics",
            "Fundamental"
          ],
          "source": "w"
        }
      ],
      "examples": [
        {
          "ref": "1996, Karl J. Lieberherr, Adaptive Object-oriented Software: The Demeter Method with Propagation Patterns, Pws Publishing Company",
          "text": "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.",
          "type": "quotation"
        },
        {
          "ref": "1998, Scott W. Ambler, Building Object Applications that Work: Your Step-by-Step Handbook for Developing Robust Systems with Object Technology, Cambridge University Press, page 249",
          "text": "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 […]",
          "type": "quotation"
        }
      ],
      "glosses": [
        "A design guideline for developing particularly object-oriented programs that mandates loose coupling between objects."
      ],
      "id": "en-Law_of_Demeter-en-name-89~Vj4wj",
      "links": [
        [
          "software",
          "software"
        ],
        [
          "object-oriented programming",
          "object-oriented programming"
        ]
      ],
      "qualifier": "object-oriented programming",
      "raw_glosses": [
        "(software, object-oriented programming) A design guideline for developing particularly object-oriented programs that mandates loose coupling between objects."
      ],
      "synonyms": [
        {
          "word": "LoD"
        },
        {
          "word": "principle of least knowledge"
        }
      ],
      "topics": [
        "computing",
        "engineering",
        "mathematics",
        "natural-sciences",
        "physical-sciences",
        "sciences",
        "software"
      ],
      "translations": [
        {
          "code": "de",
          "lang": "German",
          "sense": "software design guideline",
          "tags": [
            "neuter"
          ],
          "word": "Gesetz von Demeter"
        },
        {
          "code": "tr",
          "lang": "Turkish",
          "sense": "software design guideline",
          "word": "Demeter Yasası"
        }
      ]
    }
  ],
  "word": "Law of Demeter"
}
{
  "etymology_text": "Named for its origin in the Demeter Project, an adaptive programming and aspect-oriented programming effort, itself named after the Greek goddess Demeter.",
  "head_templates": [
    {
      "args": {
        "head": "Law of Demeter"
      },
      "expansion": "Law of Demeter",
      "name": "en-proper noun"
    }
  ],
  "lang": "English",
  "lang_code": "en",
  "pos": "name",
  "senses": [
    {
      "categories": [
        "English entries with incorrect language header",
        "English entries with language name categories using raw markup",
        "English eponyms",
        "English lemmas",
        "English multiword terms",
        "English proper nouns",
        "English terms with non-redundant non-automated sortkeys",
        "English terms with quotations",
        "English uncountable nouns",
        "en:Object-oriented programming",
        "en:Software"
      ],
      "examples": [
        {
          "ref": "1996, Karl J. Lieberherr, Adaptive Object-oriented Software: The Demeter Method with Propagation Patterns, Pws Publishing Company",
          "text": "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.",
          "type": "quotation"
        },
        {
          "ref": "1998, Scott W. Ambler, Building Object Applications that Work: Your Step-by-Step Handbook for Developing Robust Systems with Object Technology, Cambridge University Press, page 249",
          "text": "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 […]",
          "type": "quotation"
        }
      ],
      "glosses": [
        "A design guideline for developing particularly object-oriented programs that mandates loose coupling between objects."
      ],
      "links": [
        [
          "software",
          "software"
        ],
        [
          "object-oriented programming",
          "object-oriented programming"
        ]
      ],
      "qualifier": "object-oriented programming",
      "raw_glosses": [
        "(software, object-oriented programming) A design guideline for developing particularly object-oriented programs that mandates loose coupling between objects."
      ],
      "synonyms": [
        {
          "word": "LoD"
        },
        {
          "word": "principle of least knowledge"
        }
      ],
      "topics": [
        "computing",
        "engineering",
        "mathematics",
        "natural-sciences",
        "physical-sciences",
        "sciences",
        "software"
      ]
    }
  ],
  "translations": [
    {
      "code": "de",
      "lang": "German",
      "sense": "software design guideline",
      "tags": [
        "neuter"
      ],
      "word": "Gesetz von Demeter"
    },
    {
      "code": "tr",
      "lang": "Turkish",
      "sense": "software design guideline",
      "word": "Demeter Yasası"
    }
  ],
  "word": "Law of Demeter"
}

This page is a part of the kaikki.org machine-readable English dictionary. This dictionary is based on structured data extracted on 2024-05-10 from the enwiktionary dump dated 2024-05-02 using wiktextract (a644e18 and edd475d). The data shown on this site has been post-processed and various details (e.g., extra categories) removed, some information disambiguated, and additional data merged from other sources. See the raw data download page for the unprocessed wiktextract data.

If you use this data in academic research, please cite Tatu Ylonen: Wiktextract: Wiktionary as Machine-Readable Structured Data, Proceedings of the 13th Conference on Language Resources and Evaluation (LREC), pp. 1317-1325, Marseille, 20-25 June 2022. Linking to the relevant page(s) under https://kaikki.org would also be greatly appreciated.