Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So, it's like creating a special data type for each "counter-style" identifier. For example suppose a StudentsId which is not an integer, it's a StudentsInteger, so it cannot be mixed up with UsersId. Admittedly that seems more clunky than just using uuids.


Yeah you could do that if you really want to use integers. But I'm not sure I'd trust the database layer to not just silently convert the type since they're both based on integers.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: