by dehrmann · 5y ago · 0 comments
There's something to be said for strings, though. Prefixed IDs that mark the type can be nice to work with when it's an otherwise opaque ID, but they're a pain to handle internally.
If you're storing third-party IDs, you probably want strings...unless their clever JSON API returns 1.3E6 as a number. Or the string "null;" that's always an adventure.
I personally like the idea of using urls using a domain you control + a path that reflects the type of data it’s an ID for.