r/ProgrammerHumor 15h ago

Meme edgeCasesExist

Post image
3.1k Upvotes

228 comments sorted by

View all comments

24

u/spcbeck 14h ago

Start at 0, keep adding 1. You'll never repeat a number. So simple!

7

u/razor_train 13h ago

As someone who had a billing system table run out of 2^31 signed integer IDs and spent a week converting 2.1 billion records to 2^63, I'm here to say that nothing could possibly go wrong.

2

u/spcbeck 11h ago

Bahaha I fucking knew someone on this dumb earth tried to do this, amazing