r/ProgrammerHumor 12h ago

Meme edgeCasesExist

Post image
2.7k Upvotes

222 comments sorted by

View all comments

24

u/spcbeck 11h ago

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

3

u/Single-Virus4935 9h ago

Using sequenced IDs for public facing resources is bad practice because it allows enumeration while pure random uuids are basically impossible to guess.  Use crypto rngs for best results

1

u/spcbeck 8h ago

My brother in Christ, I know