Top posts

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

Software Engineering
Any year
6392

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…

6393

JEP 325: Switch Expressions

Extend the switch statement so that it can be used as either a statement or an expression, and that both forms can use either a "traditional" or "simplified" scoping and control flow behavior. These changes will simplify everyday coding, and also prepare the way for the use of pattern matching (JEP 305) in switch …

6397

Gotk3: GTK3 the Go way

Today marks the first release of gotk3, Conformal’s own GTK3 bindings for Go (available on Github here ). These bindings were developed out of a frustration with other GTK bindings for Go either using ancient versions of GTK, not handling memory in a way a Go developer would expect, or simply not working at all on our…