principles:principle_of_separate_understandability
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
principles:principle_of_separate_understandability [2014-07-02 19:42] – SLA christian | principles:principle_of_separate_understandability [2020-10-12 16:33] – old revision restored (2013-10-07 14:26) 159.69.186.191 | ||
---|---|---|---|
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 [[glossary: | + | * Then you have to read the code and mentally inline it. |
- | * If you could not memorize | + | * If you could not memoroze |
* 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 ==== |
principles/principle_of_separate_understandability.txt · Last modified: 2021-10-18 22:13 by christian