Grokking SOLID Design Principles
Vote
0% completed
SRP vs. Coupling, Cohesion, & Separation of Concerns
Here is how we can compare the Single Responsibility Principle with Coupling, Cohesion, and Separation of Concerns:
Single Responsibility Principle vs. Coupling
- SRP: Focuses on ensuring that a class has only one reason to change.
- Coupling: Focuses on minimizing dependencies between classes or modules.
- Relationship: Applying SRP tends to lower coupling, because a class with one job needs fewer collaborators. It does not guarantee it
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%