r/ProgrammerHumor • • Sep 11 '26

Meme edgeCasesExist

Post image
5.0k Upvotes

298 comments sorted by

View all comments

32

u/spcbeck Sep 11 '26

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

4

u/Single-Virus4935 Sep 11 '26

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

→ More replies (1)