Error’d: The Hardest Problem

It has been infamously stated that the two hardest problems in computer science are naming, caching, and off-by-one errors. Mixing and matching arrays indexed from 0 with arrays indexed from 1 could be a special-case of the off-by-one error.

The zeroth of a sudden rash of anonymous posters spotted this initial example, coughing "Pre-increment seems somehow inappropriate here."

one

 

Carlos follows up with a third, muttering "The image is pretty self-explanatory. Off-by-one error, maybe? I don't even know." Honestly, it took me a moment.

amazon

 

Another topically anonymous donor wonders "Are those $USD or $AUD?" Must be US dollars; in OZ they'd be $aNa.

gitea

 

The last of our anonymous cohort crowed "Vaccination rate is better than I thought."

coverage

 

Finally, the not entirely anonymous David B. dishes on his disguised employer. "At $WORK to log into some of the external sites requires SSO, sometimes SSO gives you a nice error message. Sometimes you get this. $WORK is a very large software company, it should be able to do better."

ajax

 

[Advertisement] ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.

This post originally appeared on The Daily WTF.

Leave a Reply

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