iTranslated by AI
Improving the Visual Consistency of Alphanumeric IDs
Looking at the incident pages on Cloudflare Status, I felt that using random alphanumeric characters for IDs makes the string look cluttered, which isn't very appealing.
https://www.cloudflarestatus.com/incidents/k9ppxftx8bs5
In Zenn's case, it uses 16 types of HEX (0-9, a-f), so there are no letters that dip below the baseline, making it look uniform.
Perhaps because the probability of collisions increases with that, the ID here is 14 characters long, two characters longer than the Cloudflare Status ID.
https://zenn.dev/15/articles/b7ae9f25ffac75
I wondered if I could improve the appearance by limiting the character set, so I tried creating IDs using only characters that fit within the x-height. I made them 14 characters long like Zenn, but since there are only 13 types of characters, they are even more prone to collisions.
https://example.com/articles/oasrmunxecavom
https://example.com/articles/szvomecarnuxwo
https://example.com/articles/cawxerumozsvan
Looking at this, when everything is composed of characters that fit within the x-height, it's hard to distinguish the differences between each ID at a glance.
HEX might be better as it achieves a good balance between character types and appearance, resulting in high visibility.
Discussion