Hacker News new | ask | show | jobs
by dvh 1464 days ago
I use integer surrogate keys everywhere. So 1 yes, 2 no, 3 unset, 4 yes but no every other Friday, 5 use this option for customer x, 6 no with notes, 7 zebra, 8...
2 comments

I'm pretty sure I've worked on this codebase...
With some 4.2 billion integers to choose from, you can pretty much put everything in one enum. Genius!