Single Responsibility Principle

Just because you can doesn’t mean you should.

  • A class should have only one reason to change.
  • There should never be more than one reason for a class to
    change.
  • Your classes should be small. No more than a screen full of
    code.
  • Avoid ‘god’ classes.
  • Split big classes into smaller classes.

Leave a Reply