Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One more note: uuid is not easily copy-pastable, due to dash `-` in it. I prefer to use it's raw bytes and encode with base32, which is copy-pastable.


If the goal is copy-pastable, why not base36 or base62?


Because typing them or reading them back over the phone is much less human-friendly.

So far https://philzimmermann.com/docs/human-oriented-base-32-encod... has the best trade-offs I've ever seen.

(Though for encoding numbers, where small numbers deserve a shorter representation, Base58 can be nice too.. z-base-32's alphabet is still more user-friendly. https://github.com/tv42/base58 )


Base32 is already implemented in most stdlibs, and I'm lazy to write it myself :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: