logoalt Hacker News

silvestrovtoday at 7:32 AM1 replyview on HN

Good trick is to prefix all such keys with magic, i.e. a couple of letters that identify type type of key.

Then it will always be a string and you will be free to change the format/type of the key in the future to UUID or whatever you like.


Replies

zmjtoday at 3:43 PM

Rule of thumb: if you’re not doing math with a value, it’s not a number.

show 1 reply