Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Single responsibility principle

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Single responsibility principle

Single responsibility principle

Avatar for Grzegorz Wilczyński

Grzegorz Wilczyński

November 12, 2012

More Decks by Grzegorz Wilczyński

Other Decks in Programming

Transcript

  1. SOLID The principles when applied together intend to make it

    more likely that a programmer will create a system that is easy to maintain and extend over time. http://en.wikipedia.org/wiki/Solid_(object-oriented_design)
  2. Rule #1 A class should have only one reason to

    change. "Agile Principles, Patterns, and Practices in C#" Robert C. Martin
  3. Rule #2 A class should have only one reason to

    change. "Agile Principles, Patterns, and Practices in C#" Robert C. Martin