User Tools

Site Tools


principles:single_responsibility_principle

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
principles:single_responsibility_principle [2020-10-12 16:37] – old revision restored (2013-06-22 20:45) 159.69.186.191principles:single_responsibility_principle [2021-10-18 22:01] (current) – +++ restored +++ christian
Line 5: Line 5:
   * One Responsibility Rule   * One Responsibility Rule
   * Separation of Concerns (this originally was a broader term but is mostly used just like SRP)   * Separation of Concerns (this originally was a broader term but is mostly used just like SRP)
 +  * Curly's Law
 +  * Do One Thing
  
  
Line 16: Line 18:
 ===== Principle Statement ===== ===== Principle Statement =====
  
-There should never be more than one reason for a [[glossary:module]] to change.((compare [[http://www.objectmentor.com/resources/articles/srp.pdf|Robert C. Martin: Single Responsibility Principle]]))+There should never be more than one reason to change certain [[glossary:module]].((compare [[http://www.objectmentor.com/resources/articles/srp.pdf|Robert C. Martin: Single Responsibility Principle]]))
  
  
Line 87: Line 89:
   * [[wp>Separation of Concerns]]   * [[wp>Separation of Concerns]]
   * [[http://blog.8thlight.com/cory-foy/2012/08/07/thinking-differently-about-srp.html|Thinking Differently About the Single Responsibility Principle]]   * [[http://blog.8thlight.com/cory-foy/2012/08/07/thinking-differently-about-srp.html|Thinking Differently About the Single Responsibility Principle]]
 +  * Coding Horror: [[http://blog.codinghorror.com/curlys-law-do-one-thing/|Curly's Law: Do One Thing]]
  
 ===== Discussion ===== ===== Discussion =====
  
 Discuss this wiki article and the principle on the corresponding [[talk:principles:Single Responsibility Principle|talk page]]. Discuss this wiki article and the principle on the corresponding [[talk:principles:Single Responsibility Principle|talk page]].
 +
principles/single_responsibility_principle.1602513433.txt.gz · Last modified: 2020-10-12 16:37 by 159.69.186.191