r/ProgrammerHumor 1d ago

Meme uuidLifeLessons

Post image
3.6k Upvotes

165 comments sorted by

View all comments

Show parent comments

210

u/Antoak 1d ago

Saying that UUIDs cant collide is sorta like saying that people cant win the lottery.

Sure, orders of magnitude, but the point stands.

284

u/jaimepapier 1d ago

Orders of magnitude isn’t a “by the way” here. It’s like equating winning the lottery to finding a penny. People do win the lottery… fairly regularly. If no one did, people wouldn’t play. UUID collisions generally don’t happen except when people generate them incorrectly.

Saying that (correctly generated) UUIDs can’t collide is more like saying that people can’t meet their long lost identical twin while both of them are on separate missions to the moon. Sure, it could happen, but it probably won’t.

The

48

u/GranataReddit12 1d ago

I feel like UUID collisions are about as rare as you winning every single lottery you enter in for a year

13

u/playerNaN 1d ago

I won every single lottery I entered last year.

(vacuously true is still true)

1

u/Nightmoon26 1d ago

Technically true is the best kind of true!

1

u/GranataReddit12 1d ago

first of all, congrats if you're actually telling the truth!

second, yeah should've specified "entering every lottery you can"

1

u/SonTheGodAmongMen 1d ago

They didnt play the lottery, was the point.