Cohesion in a Small Component

A cohesive component groups behavior and data that serve one related responsibility. Its neighbors can use it through a concise contract.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace parsing responsibilities
  2. Check how changes cluster

Trace parsing responsibilities

A parser can own field interpretation and syntax diagnostics without also deciding which screen displays imported rows. See separating reading and parsing.

Check how changes cluster

If a format revision requires edits across unrelated screens, move the shared interpretation closer to one boundary. A focused helper applies the same idea at a smaller scale.[1]

References

  1. David L. Parnas, On the Criteria to Be Used in Decomposing Systems into Modules, CMU-CS-71-101 ↩