principles:principle_of_separate_understandability
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
principles:principle_of_separate_understandability [2020-10-12 16:33] – old revision restored (2013-10-07 14:26) 159.69.186.191 | principles:principle_of_separate_understandability [2021-10-18 22:13] (current) – +++ restored +++ christian | ||
---|---|---|---|
Line 32: | Line 32: | ||
* You have to find the implementation and jump there (modern IDEs help here but it takes time nevertheless) | * You have to find the implementation and jump there (modern IDEs help here but it takes time nevertheless) | ||
* While doing so, you have to memorize the call and the context of the call. If implementation and call are not colocated (which is preferable but not always possible) you won't see the call anymore so you have to memorize it. | * While doing so, you have to memorize the call and the context of the call. If implementation and call are not colocated (which is preferable but not always possible) you won't see the call anymore so you have to memorize it. | ||
- | * Then you have to read the code and mentally inline it. | + | * Then you have to read the code and [[glossary: |
- | * If you could not memoroze | + | * If you could not memorize |
* After you did all that you have to jump back and continue reading the method with the call you just mentally inlined. | * After you did all that you have to jump back and continue reading the method with the call you just mentally inlined. | ||
Line 85: | Line 85: | ||
* [[Tell, don't Ask/ | * [[Tell, don't Ask/ | ||
* [[Low Coupling]] (LC): Not adhering to PSU means that responsibilities are scattered across several modules. This typically also means increased coupling. | * [[Low Coupling]] (LC): Not adhering to PSU means that responsibilities are scattered across several modules. This typically also means increased coupling. | ||
+ | * [[Single Level of Abstraction]] (SLA): The purpose of PSU is to avoid [[glossary: | ||
==== Principle Collections ==== | ==== Principle Collections ==== | ||
Line 303: | Line 304: | ||
Discuss this wiki article and the principle on the corresponding [[talk: | Discuss this wiki article and the principle on the corresponding [[talk: | ||
+ |
principles/principle_of_separate_understandability.txt · Last modified: 2021-10-18 22:13 by christian