TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Kill that funky enum, dev boy

2 pointsby breytenalmost 14 years ago

1 comment

stephenralmost 14 years ago
Using enum isn't just about limiting the value to predefined options, it also requires less storage space, however for most applications I would agree (and use the same concept myself) of having the value:text pairs in the app code on the model (or a helper class if it's a common type of column, ie several tables might have a "state" column.)