1484
Off by one solitude
(fed.dyne.org)
Post funny things about programming here! (Or just rant about your favourite programming language.)
I've seen a lot of rulers that actually don't have a mark at 0 and instead go right to the edge as 0. Typically they are worn down, being made of wood, so the accuracy of the first inch is dubious. To ensure the distance is correct, sliding the ruler down one unit is a good idea. So, my ruler starts at 0 but my measurements start at 1.
That's why decent rulers have a 0 and a margin:
It really depends on what you're measuring. Good luck measuring the distance from a corner if you can't get 0 to touch the end.
Tape measures are almost always designed with this in mind, so you can hook the end over an edge, or butt it up against something and the measurement will be accurate both ways, since the metal end can slide in or out by just the right amount.
OMG! I genuinely thought all the tape measures I have handled were a little broken.
Just shave down the rulers margin!