November 29, 2026 · Nora Berg

Reading other people's code slowly

What I learn from going through a small project line by line.

If a script needs a manual, it probably needs to be simpler first.

In the end the fix was three lines, and the commit message was longer than the change.

The bug turned out to be a single character in a configuration file, which is how most of my long evenings end.

Writing the explanation here took longer than writing the code. It also made me find a second bug.

The documentation was correct; I simply read the version for a release three years older than mine.

I rewrote the function twice before realising the original version was fine and the problem was in the input.

← back to the journal