The Law of Demeter (LoD) or principle of least knowledge is a design guideline for developing software, particularly object-oriented programs. In its general form, the LoD is a specific case of loose coupling. The guideline was proposed by Ian Holland at Northeastern University towards the end of 1987,[1] and the following three recommendations serve as a succinct summary:[2]
Each unit should have only limited knowledge about other units: only units "closely" related to the current unit.
Each unit should only talk to its friends; don't talk to strangers.
Only talk to your immediate friends.
The fundamental notion is that a given object should assume as little as possible about the structure or properties of anything else (including its subcomponents), in accordance with the principle of "information hiding". It may be viewed as a corollary to the principle of least privilege, which dictates that a module possess only the information and resources necessary for its legitimate purpose.
It is so named for its origin in the Demeter Project, an adaptive programming and aspect-oriented programming effort. The project was named in honor of Demeter, “distribution-mother” and the Greek goddess of agriculture, to signify a bottom-up philosophy of programming which is also embodied in the law itself.[citation needed]
The LawofDemeter (LoD) or principle of least knowledge is a design guideline for developing software, particularly object-oriented programs. In its general...
religion and mythology, Demeter (/dɪˈmiːtər/; Attic: Δημήτηρ Dēmḗtēr [dɛːmɛ́ːtɛːr]; Doric: Δαμάτηρ Dāmā́tēr) is the Olympian goddess of the harvest and agriculture...
Peter Demeter (born 19 April 1933) is a Hungarian-born Canadian former real estate developer convicted in 1974 of arranging the murder of his wife. It...
The Last Voyage of the Demeter (also known as Dracula: Voyage of the Demeter in some international markets) is a 2023 American supernatural horror film...
be accessed. The LawofDemeter, also known as the principle of least knowledge is a design guideline to promote loose coupling of data structures that...
Cora, is the daughter of Zeus and Demeter. She became the queen of the underworld after her abduction by her uncle Hades, the king of the underworld, who...
interaction) Scope (programming) Compartmentalization (information security) LawofDemeter Rogers, Wm. Paul (18 May 2001). "Encapsulation is not information hiding"...
principle LawofDemeter, also known as the principle of least knowledge Lawof conservation of complexity, also known as Tesler's Law Lehman's lawsof software...
interface LawofDemeter Separation of concerns Service-oriented architecture Space-based architecture (SBA) Loosely Coupled: The Missing Pieces of Web Services...
occurrence of α in the set Δ. Handle Delegation pattern Pointer Reference Dereference operator LawofDemeter Spinellis, Diomidis (2007). "Another level of indirection"...
Demeter International is the largest certification organization for biodynamic agriculture Its name is a reference to Demeter, the Greek goddess of grain...
the shortcomings of BibBase's adherence to LawofDemeter principles when language translation is taken into account. Comparison of reference management...
Demeter, which is the oldest story of the abduction, most likely dating back to the beginning of the 6th century BC. Helios told the grieving Demeter...
the cult ofDemeter and Persephone based at the Panhellenic Sanctuary of Eleusis in ancient Greece. They are considered the "most famous of the secret...
ISBN 978-0-306-82020-5. Demeter, George (1969). Demeter's Manual of Parliamentary Law and Procedure, Blue Book, p. 260 (Demeter) Demeter, p. 261 Robert 2011...
was named Trachis. In the town of Anthela, the Malians had an important Temple ofDemeter Amphictyonis, an early center of the Anthelan Amphictyony. The...
George Demeter (/dɪˈmiːtər/; 1896–1983) was the author ofDemeter's Manual of Parliamentary Law and Procedure. The second Wednesday in April has been designated...
the time of the Homeric Hymn to Demeter (650–550 BCE). The Telesterion had ten different building phases that took place over the course of its creation...
Fitzgerald Cullinane Hall. At the end of 1987, the CCS proposed the Law ofDemeter, which was widely used in software development area. In 2004, the college...