User Tools

Site Tools


principles:law_of_demeter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
principles:law_of_demeter [2013-04-05 10:18] – [Generalizations] christianprinciples:law_of_demeter [2021-10-18 21:52] (current) – +++ restored +++ christian
Line 9: Line 9:
 /* fill in contexts here: */ /* fill in contexts here: */
   * [[contexts:Object-Oriented Design]]    * [[contexts:Object-Oriented Design]] 
 +  * [[contexts:Implementation]]
  
 ===== Principle Statement ===== ===== Principle Statement =====
Line 63: Line 63:
  
 ==== Complementary Principles ==== ==== Complementary Principles ====
 +
 +  * [[Model Principle]] (MP): Adhering to LoD may result in additional methods in aggregating classes. MP tells how they should look like.
 +
  
 ==== Principle Collections ==== ==== Principle Collections ====
Line 87: Line 90:
   * Phil Haack: //[[http://haacked.com/archive/2009/07/14/law-of-demeter-dot-counting.aspx|The Law of Demeter Is Not A Dot Counting Exercise]]//   * Phil Haack: //[[http://haacked.com/archive/2009/07/14/law-of-demeter-dot-counting.aspx|The Law of Demeter Is Not A Dot Counting Exercise]]//
   * [[http://www.ccs.neu.edu/home/lieber/LoD.html|Law of Demeter]]   * [[http://www.ccs.neu.edu/home/lieber/LoD.html|Law of Demeter]]
 +
 +===== Discussion =====
 +
 +Discuss this wiki article and the principle on the corresponding [[talk:principles:Law of Demeter|talk page]].
  
principles/law_of_demeter.1365149890.txt.gz · Last modified: 2013-05-19 22:10 (external edit)