principles:information_hiding_encapsulation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
principles:information_hiding_encapsulation [2013-03-18 09:44] – external edit 127.0.0.1 | principles:information_hiding_encapsulation [2013-06-15 15:31] – [Context] 94.217.39.37 | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Variants and Alternative Names ===== | ===== Variants and Alternative Names ===== | ||
+ | |||
+ | * Parnas' | ||
===== Context ===== | ===== Context ===== | ||
/* fill in contexts here: */ | /* fill in contexts here: */ | ||
- | * [[contexts: | + | * [[contexts: |
+ | * [[contexts: | ||
+ | * [[contexts: | ||
Line 29: | Line 34: | ||
* Avoid aliasing problems with lists and similar data structures | * Avoid aliasing problems with lists and similar data structures | ||
* Copy internal list objects before returning them or only return a read-only '' | * Copy internal list objects before returning them or only return a read-only '' | ||
+ | |||
===== Caveats ===== | ===== Caveats ===== | ||
Line 37: | Line 43: | ||
===== Origin ===== | ===== Origin ===== | ||
+ | David Parnas: // | ||
===== Evidence ===== | ===== Evidence ===== | ||
/* Comment out what is not applicable and explain the rest: */ | /* Comment out what is not applicable and explain the rest: */ | ||
Line 46: | Line 52: | ||
* [[wiki: | * [[wiki: | ||
*/ | */ | ||
+ | |||
===== Relations to Other Principles ===== | ===== Relations to Other Principles ===== | ||
Line 65: | Line 72: | ||
* [[Principle of Separate Understandability]] (PSU): IH/E is about constructing a module in a way that hides the inner workings so it can be used without knowing them. PSU on the other hand is about constructing a module such that its inner workings (and its usage also) can be understood without knowledge about //other// modules. | * [[Principle of Separate Understandability]] (PSU): IH/E is about constructing a module in a way that hides the inner workings so it can be used without knowing them. PSU on the other hand is about constructing a module such that its inner workings (and its usage also) can be understood without knowledge about //other// modules. | ||
* [[Easy to Use and Hard to Misuse]] (EUHM): A module should be properly encapsulated in order to make it easy to use and hard to misuse. | * [[Easy to Use and Hard to Misuse]] (EUHM): A module should be properly encapsulated in order to make it easy to use and hard to misuse. | ||
+ | |||
==== Principle Collections ==== | ==== Principle Collections ==== | ||
Line 80: | Line 88: | ||
/ | / | ||
/ | / | ||
+ | |||
===== Further Reading ===== | ===== Further Reading ===== | ||
+ | * [[wiki> | ||
+ | * [[wp> | ||
+ | |||
+ | * [[wiki> | ||
+ | * [[wp> | ||
+ | |||
+ | * [[http:// | ||
+ | * [[wiki> | ||
+ | * [[wiki> |
principles/information_hiding_encapsulation.txt · Last modified: 2021-10-18 21:56 by christian