principles:high_cohesion
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:high_cohesion [2013-02-10 23:08] – WIP(relations) christian | principles:high_cohesion [2021-09-02 12:37] – old revision restored (2021-05-11 21:54) 65.21.179.175 | ||
---|---|---|---|
Line 47: | Line 47: | ||
==== Specializations ==== | ==== Specializations ==== | ||
- | * [[Tell don't Ask/Information Expert]] | + | * [[Information Expert]]: Adhering to information expert means that a module only has responsibilities which belong together. So this increases cohesion. |
* [[Constantine' | * [[Constantine' | ||
- | * [[Single Responsibility Principle]] (SRP): SRP is a stronger version of HC. | ||
- | * [[Interface Segregation Principle]] (ISP): ISP is the application of HC to interfaces. | ||
==== Contrary Principles ==== | ==== Contrary Principles ==== | ||
* [[More Is More Complex]] (MIMC): Making a module highly cohesive often results in additional modules. Sometimes it is simpler to assign a minor unrelated responsibility to a module, which lowers the cohesion. | * [[More Is More Complex]] (MIMC): Making a module highly cohesive often results in additional modules. Sometimes it is simpler to assign a minor unrelated responsibility to a module, which lowers the cohesion. | ||
- | * [[Model Principle]] (MP): Adhering to HC sometimes means to split up a class into several smaller ones which might correspond to the model less well. | + | |
==== Complementary Principles ==== | ==== Complementary Principles ==== |
principles/high_cohesion.txt · Last modified: 2021-10-18 21:36 by christian