News for hackers. Stuff that matters.
Re:ULID: Like UUID but Sortable (2019) by amelius on Sunday July 14, 2024 @07:54AM (#40960378)
But why would you need to let the library prefix the ID if you can just prefix it yourself right after the UUID call?
Re:ULID: Like UUID but Sortable (2019) by carderne on Sunday July 14, 2024 @08:08AM (#40960448)
Main reason would be that every dev must then remember to add/strip a prefix at some boundary around the DB, which I think would be pretty error prone.

A more minor benefit maybe is that they're natively presented with the prefix in the DB, so eg communicating with non-technical team while running SQL queries doesn't involve constantly adding/removing prefixes...