Cohesion and Coherence

Cohesion and Coherence

June 12, 2024 | budding, permanent

tags
Software Engineering

Why this matters? #

A very good starting point vs all the principles and rules.

Coherence > Cohesion

Cohesion vs Coherence #

definitions and meaning

CohesionCoherence
low levelhigh level
to stick or stitchorganize or structure
construct to constructEmergent
measurablesubjective, not measurable, creativity
QuantitativeQualitative, expertise, hard to teach
more concretemore abstract

In Programming (OOP paradigm) #

Cohesion #

  • How similar things are grouped
  • How focused functions are
  • Single Responsibility Principle At function and Class level
  • How focused classes are
    1. how closely related functions are
    2. how tightly coupled are

Cohesion tools #

In Writing #

Cohesion tools #

In Ansible Configurations #

In Movies #

In Civil Engineering #

References #

https://www.educba.com/coherence-vs-cohesion/ https://ericnormand.me/podcast/keeping-functional-code-organized


No notes link to this note

Go to random page

Previous Next