Closed joemasilotti closed 2 years ago
Rather than uuid have you considered https://github.com/excid3/prefixed_ids ?
I like this Stripe like obfuscated ids
I love Stripe's obfuscated IDs but I don't see the value in a project that doesn't have a real developer API. Said another way, what's the benefit of a developer having an ID of dev_abc123
vs. abc_123
if the only place you ever see it is in the URL of a developer's profile page?
Thanks for bringing this up @adrienpoly. I ended up opening a PR with what prefixed_ids uses under the hood, hashid. I was worried about not being able to salt prefixed_ids which would make it easy to guess URLs. Which kind of defeats the purpose of this task!
The goal of this PR is to obfuscate the developer's ID to a hard-to-guess string of characters.
A PR addressing this issue should:
developers
table primary key to UUIDdeveloper_path(developer)
/developers/1
) return a 404Notes and links: