Off-by-one errors

There’s an old joke that there are only two hard things in computer science: caching, naming things, and off-by-one errors. The punchline is that joke is itself an off-by-one error: it claims there are only two hard things but lists three.

I was reminded of this joke by a Guardian article about invalid divorces due to an off-by-one error:

A hearing in London on Wednesday was told that 79 divorces were incorrectly approved after the applications were submitted a day before the law allows. An online system failed to detect that the submissions came a year after marriage, when the law only permits divorces from a year and a day.

It’s a gentle reminder that computers can make mistakes without AI.

(via Money Stuff newsletter)

Leave a Reply

Your email address will not be published. Required fields are marked *