Most cited

Posts that commenters keep linking to, ranked by how many different people have cited them in Hacker News comments. 42 posts.

Web & Frontend
2025
2

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…

22

Feed the bots

A week ago , I set up a dynamically generated nonsense maze to catch LLM scrapers. Now, requests to it make up 99.9% of my server's traffic, but my total request volume did not increase. The bots didn't come to my site because of the trap.

25

It’s OK to block ads (2015)

Over the past couple of months, the practice of ad blocking has received heightened ethical scrutiny. (1,2,3,4) If you’re unfamiliar with the term, “ad blocking” refers to software—usually web browser plug-ins, but increasingly mobile apps—that stop most ads from appearing when you use websites or apps that would…

28

The Future of Htmx

In this essay, Carson Gross and Alex Petros discuss htmx's future direction and philosophy. They explain how the project aims to emulate jQuery's success through API stability, minimal feature additions, and quarterly releases while continuing to promote hypermedia-driven development and support the broader web…

29

Don't animate height

Our app was mysteriously using 60% CPU and 25% GPU on my M2 MacBook. It turned out this was due to a tiny CSS animation! In this post, I show how to find expensive animations, why some are so expensive, and how to make many animations much cheaper. Along the way, we'll learn how the browser renders CSS animations and…