Chesterton's bollard: the LessWrong post that explains your worst refactor

5 min read 1 source clear_take
├── "Ugly street furniture is a legible record of past failures, not aesthetic negligence"
│  └── LessWrong author (LessWrong) → read

Argues that every bollard, redundant sign, and truncated-dome pad is a 'legible scar' tied to a specific lawsuit, injury, ADA ruling, or insurance requirement. Collison's aesthetic critique misses that these objects are postmortems converted into steel — removing them re-runs the incident that created them.

├── "The same 'Chesterton's fence' logic applies directly to codebases"
│  └── top10.dev editorial (top10.dev) → read below

Extends the LessWrong argument to software: defensive branches, magic numbers, retry loops, and cryptic 'do not remove' comments are the code equivalent of bollards — each one encodes a past incident the compiler didn't label. Cites Postgres fsyncgate as a case where the 'paranoid' checkpoint code existed precisely because a prior failure demanded it.

└── "Patrick Collison's aesthetic comparison to Zurich and Tokyo is wrong"
  └── @HN community (Hacker News, 113 pts) → view

The post's climb to 113 points signals broad agreement that comparing US streetscapes to Zurich or Tokyo ignores the distinct liability regime, ADA Title II obligations, and insurance-driven engineering that shaped American infrastructure. The 'visual junk' is a product of a different legal and risk environment, not inferior taste.

What happened

A LessWrong post titled bluntly *Patrick Collison you are WRONG about street furniture!!!* has been climbing Hacker News (113 points at writing) and generating the kind of long-tail comment thread that only lands when a post hits a nerve across more than one tribe. The target is a running argument the Stripe cofounder has made for years: American cities are drowning in visual junk — redundant signage, stubby concrete bollards, wayfinding paint, orange cones that never leave, three pedestrian signs where one would do. Compared to Zurich or Tokyo, US streetscapes look like an engineer's scratch pad.

The LessWrong author's reply is not aesthetic. It is forensic. Every piece of 'ugly' street furniture is a legible scar — a specific lawsuit, a specific child hit by a specific driver at a specific intersection, a specific ADA Title II ruling, a specific insurance underwriter's checklist, a specific postmortem converted into a steel post. The bollard in front of the storefront exists because a car drove through the window in 2017. The yellow truncated-dome pad exists because a blind pedestrian walked into traffic and the DOJ wrote a rule. The redundant stop sign exists because the city got sued the last time there was only one.

The argument generalizes. And the clearest place it generalizes to isn't urban planning — it's your codebase.

The git-blame equivalent of a bollard

In code, the bollard is the defensive branch with no comment, the magic number in a config, the retry loop that looks like belt-and-suspenders, the `// do not remove` that doesn't say why. Each one is a lawsuit the compiler forgot to label. Three stories where removing the ugly thing re-ran the incident.

### 1. Postgres and fsyncgate

For years, the Postgres checkpointer did something that looked paranoid: it retried `fsync()` on failure and logged carefully around the dirty-page bookkeeping. If you'd been asked to tidy the checkpoint path in 2017, you'd have pulled on that thread. It looked like belt-and-suspenders against a syscall that's supposed to be synchronous by definition.

In April 2018, Craig Ringer discovered that Linux (and, as it turned out, most Unix kernels) silently clear the dirty-page error state after `fsync()` returns `EIO`. A second `fsync()` returns success even though the write never hit disk. The data is gone and the kernel has forgotten it was ever a problem. The retry code that looked like excess caution was in fact dangerously insufficient. The fix (commit `bc34a22e`, released in 10.5/11) was to PANIC on the first fsync error and force a crash-recovery replay from WAL.

The "ugly" fsync code was closer to correct than any clean version a 2017 refactor would have produced. The Chesterton's fence here was a 25-year-old assumption about POSIX semantics baked into a hundred storage engines.

### 2. Kubernetes and the hairpin problem

Open the iptables ruleset kube-proxy installs on any node and you'll find `KUBE-MARK-MASQ` and `KUBE-POSTROUTING` chains doing what looks like two-step masquerading. A reasonable reviewer sees symmetry violation: why mark packets in one chain only to SNAT them in another? It reads like a refactor waiting to happen.

It isn't. When a Pod on node N dials a Service VIP that happens to route back to the same Pod on the same node, the Linux `conntrack` table sees the reply traffic coming from an unexpected source tuple and drops the connection. The "redundant" SNAT rule exists to rewrite the source so conntrack sees a consistent flow; the mark/match split exists so only hairpin traffic pays the cost. Collapse the two chains and you reintroduce a class of RST-mid-handshake failure that is hard to reproduce in a dev cluster and brutal in production — the exact pathology that drove kubernetes/kubernetes#3196 and the subsequent `hairpinMode` config.

It's a bollard. There was an incident. The rule is what the incident looks like after someone shipped the fix.

### 3. Linux kernel and silicon errata

`arch/x86/kernel/cpu/intel.c` and `common.c` are a museum. The F00F bug workaround from 1997 — a Pentium errata where an undocumented instruction sequence would halt the CPU — is still in the tree, guarded by a model check almost no one in production hits. AMD erratum 93 gets a specific workaround. Intel TSX is blacklisted on specific steppings. Every few years someone proposes dropping the oldest of these on the entirely reasonable grounds that no one is running those CPUs anymore.

They're wrong. The kernel ships on everything from a 2008 Atom in a point-of-sale kiosk to a 2024 Zen 5, and the maintainers can see the bug reports from the long tail that a refactorer can't. Each ifdef is the shape of a silicon defect. Removing one is an asymmetric bet: downside is a hang on someone's industrial controller, upside is three fewer lines of arch code.

The pattern across all three: the ugliness isn't a quality problem. It's a legibility problem. The constraint is real; the record of why is thin.

Why this matters now

LLM-assisted refactoring compounds this exactly the way removing bollards in aggregate compounds civic risk. An LLM sees a function with a defensive branch, no comment, and a `git blame` that just says "fix issue #4832". It has no memory of #4832. It sees symmetry violation and proposes a clean version. The diff looks beautiful. It also reintroduces #4832.

This is not a hypothetical. The failure mode is already in the wild for any team shipping agent-written PRs against infrastructure code — the diffs that look best to a reviewer are the ones that removed the most lines, and the lines most often removed are the ones with the least local justification, which is exactly the subset most likely to be bollards.

Three heuristics that survive contact with this reality:

1. Prefer comments to deletions. If the ugly code can't explain itself, add the comment before you'd remove the code. A sentence of provenance is cheaper than a postmortem. 2. Test before you tidy. If removing the branch doesn't make any test fail, treat that as a signal the test suite doesn't encode the constraint — not that the constraint is gone. Constraint-encoding tests are the second-cheapest way to make a bollard legible. 3. Weight asymmetry honestly. Removing a line added in response to a specific incident is an asymmetric bet. Downside: re-run the incident. Upside: three fewer lines. Agent-driven PRs are especially bad at this calculus because they optimize for diff quality, which is the wrong objective function.

The Collison move

Collison is right that aggregate visual junk is a symptom of something that has gone wrong upstream. The LW author is right that each individual piece is load-bearing. These are compatible claims, and they map directly to code. The aggregate ugliness of a legacy module tells you the surrounding system has accumulated constraints you can't see — different tort regime, different hardware, different kernel bug, different 2018 incident. That's a signal to change the system, not to prettify the symptom.

The bollards aren't the problem. The bollards are the receipt. Burn the receipt and you still owe the money.

Hacker News 113 pts 87 comments

Patrick Collison you are WRONG about street furniture!!!

→ read on Hacker News
0_____0 · Hacker News

The crux of this is interesting, and as far as I can tell is: cost disease means that labor for upkeep is impractical, therefore the built environment coverges on industrial, washdown rated surfaces.When I was in Auckland they had personnel riding the trains and buses keeping things orderly and safe

em-bee · Hacker News

I do not remember being taught to design any public space in ugly or anti-human ways. In fact I strongly suspect that I attended hundreds of hours of lectures on and had my coursework graded on how to competently do the opposite.that may be so, but there are plenty of examples of the opposite to pre

kasey_junk · Hacker News

In my neighborhood there are probably 30 apartment buildings (most are actually condos or co-ops these days) that are near identical. 3 or 4 floors of single story flats, ~15-20 per building and all of them between 3 and 6 bedrooms built between 1890 and 1910 (in Chicago).They all were originally de

gravypod · Hacker News

I'm in Mexico to visit family and the architecture and design of public seating is beautiful. The materials and coating wear off but the design can still look nice and be comfortable.This is what park benches look like in somewhere with significantly restricted funds compared to the US federal

nixonaddiction · Hacker News

point on the newport mansions is really good. ive cleaned dust off crown mouldings, i cant imagine what a pain it is to clean dust off gilded walls and everything else. makes me wonder how my church does it. also completely explains why modern rich people build such boring homes. the staffing requir

// share this

// get daily digest

Top 10 dev stories every morning at 8am UTC. AI-curated. Retro terminal HTML email.