Skip to content
CONTACT

Osborn's Law

PROGRAMMING AND BUGS

Variables won't; constants aren't.

— Anonymous, Saying common in computer humour; origin and identity of Osborn unverified (uncertain attribution)
VIDEO.EXE16:9

In theory the variable changes and the constant stays put. In practice the variable has been stuck on the wrong value since the day it was created, while the constant 'VAT rate' has changed four times in ten years.

Behind the joke there's a lesson: the things you take as unchangeable, like taxes, dialling codes and date formats, are the ones that will change. And the ones that ought to update often stay frozen because of an initialisation error.

My code contains a constant called CURRENT_YEAR. Its value is 2019. Nobody has the courage to touch it. We've decided that, as far as the software is concerned, it's still 2019. It's nice there. Prices are lower.