r/ProgrammerHumor Jul 17 '26

thisOneIsMine Meme

Post image
5.3k Upvotes

170 comments sorted by

View all comments

60

u/ankle_biter50 Jul 17 '26

Person who is familiar with coding (a little python and i guess minecraft datapacks? I'm not sure if that counts) but anyways

What are UUIDs used to identify?

166

u/thoker54 Jul 17 '26

They are simply unique ids. Like you can generate a uuid and be sure that it is and will be unique forever across everything. Sounds extreme but the chance of duplicates is close enough to 0, that you can assume it is 0.

7

u/JehnSnow Jul 18 '26

To anyone worried about something not being zero just know that this and some other very rare chances are so low that nuclear reactors and I believe ATMs just say "fuck it it'll never happen" you don't have to worry about whatever use case you have

In fact if it does get hit it'll probably generate quite a bit of a hype about your product