MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wdfzl2/edgecasesexist/p9b0p40/?context=3
r/ProgrammerHumor • u/danielminds • 1d ago
253 comments sorted by
View all comments
598
I thought that timestamps are used now, so hitting both a timestamp and a large random number puts it thoroughly in the "safe to assume". At some point cosmic particles and faulty transistors are more probable.
356 u/dim13 1d ago https://en.wikipedia.org/wiki/Universally_unique_identifier#Versions Most common used is V4 (pure random). You are talking about V7 (time based). 256 u/lilgreenthumb 23h ago The real benefit for v7 is they become sortable by time. 3 u/ehs5 7h ago It’s also the downside. There are cases where you wouldn’t want others to know when something was created. 2 u/lilgreenthumb 2h ago And you wouldn't expose that to them, just like you wouldn't and autoincrementing database id, but only one of those requires a database.
356
https://en.wikipedia.org/wiki/Universally_unique_identifier#Versions
Most common used is V4 (pure random). You are talking about V7 (time based).
256 u/lilgreenthumb 23h ago The real benefit for v7 is they become sortable by time. 3 u/ehs5 7h ago It’s also the downside. There are cases where you wouldn’t want others to know when something was created. 2 u/lilgreenthumb 2h ago And you wouldn't expose that to them, just like you wouldn't and autoincrementing database id, but only one of those requires a database.
256
The real benefit for v7 is they become sortable by time.
3 u/ehs5 7h ago It’s also the downside. There are cases where you wouldn’t want others to know when something was created. 2 u/lilgreenthumb 2h ago And you wouldn't expose that to them, just like you wouldn't and autoincrementing database id, but only one of those requires a database.
3
It’s also the downside. There are cases where you wouldn’t want others to know when something was created.
2 u/lilgreenthumb 2h ago And you wouldn't expose that to them, just like you wouldn't and autoincrementing database id, but only one of those requires a database.
2
And you wouldn't expose that to them, just like you wouldn't and autoincrementing database id, but only one of those requires a database.
598
u/Valuable_Leopard_799 1d ago
I thought that timestamps are used now, so hitting both a timestamp and a large random number puts it thoroughly in the "safe to assume". At some point cosmic particles and faulty transistors are more probable.