Hacker News new | ask | show | jobs
by fulafel 1790 days ago
I wonder if there's any widely implemented programming pattern that would catch this better, eg consisting of concatenated type code and id. Using GUIDs here would still hide the bug, not flag an error.
1 comments

I don’t know if it’s widely implemented, but the way Stripe IDs resources comes to mind.