Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 6,220 posts.

Any topic
2025
5712

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…