User Tools

Site Tools


principles:information_hiding_encapsulation

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
principles:information_hiding_encapsulation [2021-03-24 20:02] – old revision restored (2021-02-01 19:42) 188.34.165.240principles:information_hiding_encapsulation [2021-03-25 02:13] – old revision restored (2021-02-02 02:51) 157.90.171.23
Line 41: Line 41:
 ==== Contrary Principles ==== ==== Contrary Principles ====
  
-  * [[Keep It Simple Stupid]] (KISS): Not adhering to IH/E is often easier.+  * [[principles:Keep It Simple Stupid]]
  
 ==== Complementary Principles ==== ==== Complementary Principles ====
  
-  * [[Model Principle]] (MP): IH/E demands having an interface for a module which hides the inner workings. MP tells how such an interface can look like. +  * [[principles:Model Principle]] 
-  * [[Liskov Substitution Principle]] (LSP): For subclasses you can waken encapsulation by having a wider ''protected'' interface which can be used by subclasses. For these cases LSP has to be considered, too. +  * [[principles:Liskov Substitution Principle]] 
-  * [[Invariant Avoidance Principle]] (IAP): FIXME +  * [[principles:Invariant Avoidance Principle]] 
-  * [[Tell, don't Ask/Information Expert]] (TdA/IE): +  * [[principles:Information Expert]] 
-  * [[Low Coupling]] (LC): +  * [[principles:Low Coupling]] 
-  * [[Principle of Separate Understandability]] (PSU):+  * [[principles:Principle of Separate Upderstandability]]
  
 ==== Principle Collections ==== ==== Principle Collections ====
principles/information_hiding_encapsulation.txt · Last modified: 2021-10-18 21:56 by christian