🪴 Nishanth Gobi

Search

SearchSearch
Home

>

Zettelkasten

>

Permanent Notes

>

Cohesion

Cohesion

May 15, 2024, 1 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.1.0, © 2024

  • GitHub
  • LinkedIn