Simon Willison’s Weblog

Subscribe

Thursday, 22nd May 2025

If your library doesn't have any documentation, it can't have any bugs.

Documentation specifies what your code is supposed to do. Your tests specify what it actually does.

Bugs exist when your test-enforced implementation fails to match the behavior described in your documentation. Without documentation a bug is just undefined behavior.

If you aim to follow semantic versioning you bump your major version when you release a backwards incompatible change. Such changes cannot exist if your code is not comprehensively documented!

Inspired by a half-remembered conversation I had with Tom Insam many years ago.

# 1:55 am / testing, semantic-versioning, documentation

2025 » May

MTWTFSS
   1234
567891011
12131415161718
19202122232425
262728293031