Hacker News new | ask | show | jobs
by thedanbob 961 days ago
> I sent a message to my friend, "Cracked it at last. It was the letter 'E'."

Funny how the simplest, tiniest bugs are often the hardest to find. Just this morning I burned an hour or two hunting down an off-by-one error. Turns out it was an "index + 1" that I had forgotten to change when I refactored (facepalm).

1 comments

As the saying goes, there are two hard problems in computer science: cache invalidation, naming things, and off-by-one errors.
You forgot Dates, Times and Timezones
Timezones: if you operate my code across timezones, you're wrong. Date and time: %Y%m%d_%H%M%S. Don't you dare ask for it to be shown any other way.
Three ha you missed out rd problems;concurrency.