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?
[ Parent
| on HN ]
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...