Hacker News new | ask | show | jobs
by sophiabits 1014 days ago
Also as a developer I really dislike UUIDs because the hyphens make it impossible to double-click copy.

It’s a small gripe, but I need to copy IDs multiple times per day and it adds up. Other ID formats like cuid or KSUID don’t have hyphens in their canonical representation, and it makes them far more pleasant to work with

4 comments

Thats typically something you can configure in your terminals settings. Though avoiding requiring everyone know how to do this and actually do this is an improvement in developer experience so there's some merit here.. but is there any real standards around what characters get included in copying like this, or any best practices based on common defaults?

if not it might just become a situation of optimizing for your own workflow. and considering how ubiquitous uuids are and how common dash delimiters are outside of that(jira ticketscome to mind) maybe it would be better to fix places where double click selections do not include dashes instead of trying to avoid dashes in identifiers?

If that’s your issue passing the formatting option to your GUID library to get the dash-free solution seems like it would resolve it.
Yes! This might seem silly, but if you're working with a lot of data, it can be a pain and time drain...
I don't think it's a small gripe, IMO it's a critical UX issue!

ULIDs don't have this problem, for the record.