Cohesion and Coupling in Software Engineering

134 views

Cohesion and Coupling in Software Engineering

In: 0

Anonymous 0 Comments

These are abstract concepts that reference how well-formed the software is.

High cohesion means that your modules don’t have superfluous elements. For example, if you’ve got a module that prints out data, you don’t add control logic into that module because you forgot to put it where it would have been more appropriate.

Low coupling means that modules are independent of one another so that you don’t have to understand one module to understand another. In essence, you don’t want to write what should be a single module as two intertwined ones.