Skip to main content

2 docs tagged with "cohesion"

View all tags

Chapter 13: Component Cohesion

Three principles govern which classes belong in which component: REP (Reuse/Release Equivalence), CCP (Common Closure), and CRP (Common Reuse). They form a tension triangle — understanding the trade-offs helps you choose the right grouping strategy for your project's stage.

Chapter 7: SRP — The Single Responsibility Principle

The most misunderstood SOLID principle. SRP is NOT "every class does one thing" — it means a module should have only one reason to change, i.e., it serves only one actor. Learn the two symptoms of SRP violation and how to solve them.