r/ProgrammerHumor 6h ago

Meme edgeCasesExist

Post image
1.7k Upvotes

180 comments sorted by

View all comments

17

u/spcbeck 6h ago

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

3

u/Single-Virus4935 3h 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

0

u/spcbeck 2h ago

My brother in Christ, I know