🪴 Nishanth Gobi

Cohesion

Oct 23, 20231 min read

  • zettel
  • perm

Measure of the degree to which elements within a module work together to achieve a single well-defined purpose.

  • In terms of writing good code, high cohesion is favoured
  • Types,
    1. Coincidental cohesion (worst)
    2. Logical cohesion
    3. Temporal cohesion
    4. Procedural cohesion
    5. Communicational cohesion
    6. Sequential cohesion
    7. Functional cohesion (best)

Refs

  1. https://www.geeksforgeeks.org/software-engineering-coupling-and-cohesion/

Graph View

Created with Quartz v4.5.2 © 2026

  • GitHub
  • X
  • LinkedIn