Metrics turn structural opinions into numbers: afferent/efferent coupling, cohesion, connascence (type + strength + locality), and cyclomatic complexity — feedstock for fitness-function governance.
Measure before asserting: compute Ca/Ce to find load-bearing and fragile components, check cohesion to spot mixed responsibilities, and reduce strong or distant connascence (e.g. positional to named arguments). Set thresholds on coupling and cyclomatic complexity and wire them into fitness functions so structural health is enforced continuously.
Metrics turn structural opinions into numbers: afferent/efferent coupling, cohesion, connascence (type + strength + locality), and cyclomatic complexity — feedstock for fitness-function governance.
Measure before asserting: compute Ca/Ce to find load-bearing and fragile components, check cohesion to spot mixed responsibilities, and reduce strong or distant connascence (e.g. positional to named arguments). Set thresholds on coupling and cyclomatic complexity and wire them into fitness functions so structural health is enforced continuously.