You’ve likely heard these terms before, they’re thrown around a lot and have straightforward definitions.

Cohesion applies to how well you’ve thought out the concepts (and concerns, for that matter) of your application. Coupling is the opposite of cohesion. When you couple two or more things, their separate notion becomes one. You want high cohesion, low coupling. Your classes and modules should make sense for isolating ideas, and not rely on each other to exist. This is the goal, at least.


You need to be logged in to leave a comment.

Pen
>