HakiDocs

Single Responsibility Principle

Computer Science Pillar

Core Principle

As the name suggests, the Single Responsibility principle states 2 key principles.

  1. Your class or method should have only one reason to change.
  2. Your class or method should have only one responsibility to take care of.

If we follow these principles, the Separation of Concerns SoC is naturally applied.

Sources