Single Responsibility Principle: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Software Architecture =Overview= Robert C. Martin: ''Gather together those things that change for the same reason, and separate those things that change fo...") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | |||
* http://www.oodesign.com/single-responsibility-principle.html | |||
=Internal= | =Internal= | ||
* [[ | * [[SOLID Principles#SOLID_Principles|SOLID Principles]] | ||
* [[Designing Modular Systems#Cohesion|Designing Modular Systems]] | |||
=Overview= | =Overview= | ||
Robert C. Martin: ''Gather together those things that change for the same reason, and separate those things that change for different reasons''. | Robert C. Martin: ''Gather together those things that change for the same reason, and separate those things that change for different reasons''. | ||
Other formulation is: a class should have only a single reason to change. | |||
The single responsibility principle is another way to define [[Designing_Modular_Systems#Cohesion|cohesion]]. |
Latest revision as of 22:22, 3 January 2022
External
Internal
Overview
Robert C. Martin: Gather together those things that change for the same reason, and separate those things that change for different reasons.
Other formulation is: a class should have only a single reason to change.
The single responsibility principle is another way to define cohesion.