If you truncate a UUID I will truncate your fingers
gieseanw.wordpress.com·1d
🏷️Microformats
Preview
Report Post

“Oh I just needed something random but also human-readable” you said, as you casually called .Substring(8) on a UUID.

You probably also “casually” mutilate animals like you did to that poor UUID. Great job on that name, too, Shakespeare. Item_019b1999 is going to be the next buzzword all the youths are yelling. Very human-readable.

If it wasn’t bad enough, you kept the first eight characters and not the last. Do you even know what a UUID is? Let me show you.

Here’s the popular UUIDv7 everyone uses:

0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|              ...

Similar Posts

Loading similar posts...