Global Information Lookup Global Information

Law of Demeter information


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]

  1. Each unit should have only limited knowledge about other units: only units "closely" related to the current unit.
  2. Each unit should only talk to its friends; don't talk to strangers.
  3. 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]

  1. ^ Lieberherr, K.J.; Holland, I.M. (September 1989). "Assuring good style for object-oriented programs". IEEE Software. 6 (5): 38–48. doi:10.1109/52.35588. ISSN 0740-7459. S2CID 12651917.
  2. ^ Macedo, Emerson. "README.markdown: Demeter". GitHub. Retrieved 2012-07-05.

and 21 Related for: Law of Demeter information

Request time (Page generated in 0.8332 seconds.)

Law of Demeter

Last Update:

The Law of Demeter (LoD) or principle of least knowledge is a design guideline for developing software, particularly object-oriented programs. In its general...

Word Count : 1618

Demeter

Last Update:

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...

Word Count : 10236

Peter Demeter

Last Update:

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...

Word Count : 1148

The Last Voyage of the Demeter

Last Update:

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...

Word Count : 4108

Mock trainwreck

Last Update:

be accessed. The Law of Demeter, also known as the principle of least knowledge is a design guideline to promote loose coupling of data structures that...

Word Count : 905

Persephone

Last Update:

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...

Word Count : 10963

Composite pattern

Last Update:

after throwing an instance of 'std::runtime_error' what(): FloppyDisk::add Perl Design Patterns Book Mixin Law of Demeter Gamma, Erich; Richard Helm;...

Word Count : 1430

Information hiding

Last Update:

interaction) Scope (programming) Compartmentalization (information security) Law of Demeter Rogers, Wm. Paul (18 May 2001). "Encapsulation is not information hiding"...

Word Count : 1496

List of software development philosophies

Last Update:

principle Law of Demeter, also known as the principle of least knowledge Law of conservation of complexity, also known as Tesler's Law Lehman's laws of software...

Word Count : 1252

Loose coupling

Last Update:

interface Law of Demeter Separation of concerns Service-oriented architecture Space-based architecture (SBA) Loosely Coupled: The Missing Pieces of Web Services...

Word Count : 1339

Indirection

Last Update:

occurrence of α in the set Δ. Handle Delegation pattern Pointer Reference Dereference operator Law of Demeter Spinellis, Diomidis (2007). "Another level of indirection"...

Word Count : 613

Demeter International

Last Update:

Demeter International is the largest certification organization for biodynamic agriculture Its name is a reference to Demeter, the Greek goddess of grain...

Word Count : 991

Object composition

Last Update:

(computer science) Has-a Implementation inheritance Inheritance semantics Law of Demeter Object-oriented analysis and design Virtual inheritance Yaiser, Michelle...

Word Count : 2283

BibBase

Last Update:

the shortcomings of BibBase's adherence to Law of Demeter principles when language translation is taken into account. Comparison of reference management...

Word Count : 251

Hades

Last Update:

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...

Word Count : 9649

Eleusinian Mysteries

Last Update:

the cult of Demeter and Persephone based at the Panhellenic Sanctuary of Eleusis in ancient Greece. They are considered the "most famous of the secret...

Word Count : 6788

Censure

Last Update:

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...

Word Count : 1802

Thermopylae

Last Update:

was named Trachis. In the town of Anthela, the Malians had an important Temple of Demeter Amphictyonis, an early center of the Anthelan Amphictyony. The...

Word Count : 1622

George Demeter

Last Update:

George Demeter (/dɪˈmiːtər/; 1896–1983) was the author of Demeter's Manual of Parliamentary Law and Procedure. The second Wednesday in April has been designated...

Word Count : 622

Telesterion

Last Update:

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...

Word Count : 1066

Khoury College of Computer Sciences

Last Update:

Fitzgerald Cullinane Hall. At the end of 1987, the CCS proposed the Law of Demeter, which was widely used in software development area. In 2004, the college...

Word Count : 1936

PDF Search Engine © AllGlobal.net