1. Single Responsibility Principle

Created Thursday 14 August 2014

SRP

Wikipedia:

The SRP states that every object should have a single responsibility, and that responsibility should be entirely encapsulated by the class.

Robert C. "Uncle Bob" Martin

There should never be more than one reason for a class to change.

Cohesion

How strongly-related and focused are the various responsibilities of a module

Coupling

The degree to which each program module relies on each one of the other modules

Strive for low coupling and high cohesion!

Responsibilities are Axes of Change

Responsibility

Recommended reading



Backlinks: