Hacker News new | ask | show | jobs
by jstarfish 1995 days ago
Back in the day, we were taught to use database constraints to validate user inputs.

Memory, storage and compute were also more limited, so there was an extra cost to over-spec.

1 comments

Isn't this still the best practice? I do it to prevent the possibility of invalid data.