4 ms·
Neat, I like the type safe prefix idea. Personally, I rarely find I need ids to be sortable, so I just go with pure randomness. I also like to split out a par
by ajanuary 3y ago
Neat, I like the type safe prefix idea.
Personally, I rarely find I need ids to be sortable, so I just go with pure randomness.
I also like to split out a part of the random section into a tag that is easier for me to visually scan and match up ids in logs etc.
I call my ID format afids [0]
[0] https://github.com/aJanuary/afid https://github.com/aJanuary/afid