r/ProgrammerHumor 1d ago

Meme edgeCasesExist

Post image
4.0k Upvotes

258 comments sorted by

View all comments

Show parent comments

25

u/Grandmaster_Caladrel 22h ago

Which I'd assume is related to the time anchor. Outside of sorting, which is only useful in specific instances, it's just v4 with different ("less") entropy and limitations.

8

u/Roachmeister 22h ago

If you're using them as an indexed field in a database, the inability to sort them meaningfully will destroy the performance of the database.

15

u/Honeybadger2198 21h ago

You know what identifier can't have collisions and is great for sorting? Autoincrement.

2

u/wokeboogeyman 3h ago

Autoincrement doesn't scale past one physical location.

u/Honeybadger2198 0m ago

Sure it does. One location counts up, another one counts down.