htmx company blog

Locality of Behaviour (2020)

Carson Gross explores the Locality of Behaviour (LoB) principle, which emphasizes making the behavior of code units obvious on inspection to enhance maintainability. He discusses the tradeoffs between LoB and other software design principles like DRY and SoC, offering insights on balancing clarity, abstraction, and…
Points
111
HN comments
82
Submissions
2
Cited by
19 commenters

Web & FrontendSoftware Engineering2025

On Hacker News

SubmittedTitle on HNPointsComments
Jul 3, 2025Locality of Behaviour (2020) by jstanley11162
May 21, 2022Locality of Behavior by recursivedoubts9420

Cited in comments

Linked from 43 Hacker News comments by 19 different people, from Dec 2020 to Jul 2026.

Most recent:

Search every comment that links here →

More from htmx

All 23 posts →

Related posts from the same era