User Tools

Site Tools


principles:high_cohesion

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
principles:high_cohesion [2013-02-25 11:11] – IE christianprinciples:high_cohesion [2021-09-02 12:37] – old revision restored (2021-05-11 21:54) 65.21.179.175
Line 51: Line 51:
 ==== Specializations ==== ==== Specializations ====
  
 +  * [[Tell don't Ask/Information Expert]] (TdA/IE): Adhering to information expert means that a module only has responsibilities which belong together. So this increases cohesion.
   * [[Constantine's Law]]: Constantine's Law is just the combination of HC and LC.   * [[Constantine's Law]]: Constantine's Law is just the combination of HC and LC.
   * [[Single Responsibility Principle]] (SRP): SRP is a stronger version of HC.   * [[Single Responsibility Principle]] (SRP): SRP is a stronger version of HC.
Line 64: Line 65:
 ==== Complementary Principles ==== ==== Complementary Principles ====
  
-  * [[Tell don't Ask/Information Expert]] (TdA/IE): IE may help finding solutions with high cohesion. On the other hand it may also be disadvantageous in some cases (see [[Tell don't Ask/Information Expert#caveats]]).  
   * [[Encapsulate the Concept that Varies]] (ECV): Adhering to HC often results in modules to be split up into several more cohesive ones. ECV gives further advice on how to do that.   * [[Encapsulate the Concept that Varies]] (ECV): Adhering to HC often results in modules to be split up into several more cohesive ones. ECV gives further advice on how to do that.
  
principles/high_cohesion.txt · Last modified: 2021-10-18 21:36 by christian