ARTICLE · How software is shaped

Occam's razor

A good debugging hypothesis explains the evidence and suggests a cheap way to prove itself wrong.

Article© Arthur Bernier Jroriginal230 words1 sections
BIG POPPA CODE TECHNOLOGY EXPLAINED

Occam's razor

YouTube stays disconnected until you choose to load this player. Loading connects to Google/YouTube, which receives your IP address and may use cookies or browser storage.

The login screen worked yesterday. Today it rejects everyone. You could invent a story about corrupted databases, a broken cryptographic library, and a coordinated attack. You could also check whether the server loaded the signing secret you changed this morning.

Occam's razor helps order the investigation. When several explanations fit the evidence, prefer the one that requires fewer unsupported assumptions. That preference is a starting point for a test, not permission to declare victory before gathering evidence.

Let the result change your mind#

Write down the observation precisely: “every token receives 401 after deployment” is more useful than “authentication is broken.” Then choose a hypothesis and a discriminating check. If the secret is missing, the startup configuration should show that fact without printing the secret itself. If configuration is correct, move on to the next explanation.

The dangerous habit is protecting your first guess. Repeating the same restart five times does not make the explanation stronger. A failed check should reduce your confidence and change what you inspect next.

This makes debugging feel less like being judged by an all-knowing machine. You are conducting a small investigation. Keep a record of what you expected, what you observed, and which possibility you eliminated. Over time, that record becomes more valuable than a collection of mysterious fixes that happened to make the error disappear.

Original episode on YouTube.

See also