4 ms·
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.
by deepsun 4y ago
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.
- antifa 4y agoIf the goal is copy-pastable, why not base36 or base62?
- deepsun 4y agoBase32 is already implemented in most stdlibs, and I'm lazy to write it myself :)
- yencabulator 4y agoBecause typing them or reading them back over the phone is much less human-friendly. So far https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt 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 https://github.com/tv42/base58 )