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-07-02 21:41] – from thesis christian | principles:high_cohesion [2019-05-29 15:09] – old revision restored (2016-09-03 22:52) christian | ||
---|---|---|---|
Line 86: | Line 86: | ||
/ | / | ||
/ | / | ||
+ | |||
+ | ==== Class level cohesion ==== | ||
+ | |||
+ | Robert Cecil Martin (Uncle Bob) describes 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