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 revisionBoth sides next revision
principles:high_cohesion [2013-07-02 21:41] – from thesis christianprinciples:high_cohesion [2016-09-03 22:28] 5.12.30.152
Line 86: Line 86:
 /*[[wiki:Incomplete]]*/ /*[[wiki:Incomplete]]*/
 /*[[wiki:Complete]]*/ /*[[wiki:Complete]]*/
 +
 +==== Class level cohesion ====
 +
 +Robert Cecil Martin (Uncle Bob) describe maximal cohesion at class level as "A class in which each variable is used by each method".
 +
 +"In general the more variables a method manipulates the more cohesive that method is to its class." 
 +(Clean Code: A Handbook of Agile Software Craftsmanship - Chapter 10)
  
 ===== Further Reading ===== ===== Further Reading =====
principles/high_cohesion.txt · Last modified: 2021-10-18 21:36 by christian