5 ms·
Using incrementing ids as your source of ownership is just asking for trouble. This just means a programming error can have a high probability of ids lining up
by hackinthebochs 5y ago
Using incrementing ids as your source of ownership is just asking for trouble. This just means a programming error can have a high probability of ids lining up and leaking resources. Guids make this practically impossible.
- rattray 5y agoInteresting, I hadn't thought of that advantage of uuids/guids before.
- fulafel 5y agoI 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.
- ultrarunner 5y agoI don’t know if it’s widely implemented, but the way Stripe IDs resources comes to mind.