Single Responsibility Principle
Computer Science Pillar
Core Principle
As the name suggests, the Single Responsibility principle states 2 key principles.
- Your class or method should have only one reason to change.
- 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.