Re:GUIDs Are Not the Only Answer
by rualca on Wednesday January 06, 2021 @02:50AM
(#25655520)
> The Python package `shortuuid` makes working with UUIDs a little easier by encoding them as strings:
This. In my opinion the only issue with UUIDs is that their standard textual representation can be very verbose and cumbersome in some scenarios.
A single ID takes over around 40 string characters in a line. That's half the width of a default terminal's width.
Thus the solution is obviously to use other textual representations. Instead of base16 then let's ramp up the base to shorten up the text dump, and while we are at it let's pick a readable format.
This. In my opinion the only issue with UUIDs is that their standard textual representation can be very verbose and cumbersome in some scenarios.
A single ID takes over around 40 string characters in a line. That's half the width of a default terminal's width.
Thus the solution is obviously to use other textual representations. Instead of base16 then let's ramp up the base to shorten up the text dump, and while we are at it let's pick a readable format.