principles:law_of_demeter
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| principles:law_of_demeter [2021-09-02 12:32] – old revision restored (2021-05-19 11:21) 65.21.179.175 | principles:law_of_demeter [2021-10-18 21:52] (current) – +++ restored +++ christian | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| /* fill in contexts here: */ | /* fill in contexts here: */ | ||
| * [[contexts: | * [[contexts: | ||
| + | * [[contexts: | ||
| ===== Principle Statement ===== | ===== Principle Statement ===== | ||
| Line 52: | Line 52: | ||
| * [[Low Coupling]] (LC): The goal of LoD is to reduce coupling by reducing the knowledge of a class about other classes. | * [[Low Coupling]] (LC): The goal of LoD is to reduce coupling by reducing the knowledge of a class about other classes. | ||
| - | * [[Tell, Don't Ask/ | + | * [[Tell, Don't Ask/ |
| ==== Specializations ==== | ==== Specializations ==== | ||
| 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 ==== | ||
| - | ===== Example | + | ===== Examples |
| Line 87: | Line 90: | ||
| * Phil Haack: // | * Phil Haack: // | ||
| * [[http:// | * [[http:// | ||
| + | |||
| + | ===== Discussion ===== | ||
| + | |||
| + | Discuss this wiki article and the principle on the corresponding [[talk: | ||
principles/law_of_demeter.1630578749.txt.gz · Last modified: by 65.21.179.175
