Hacker News new | ask | show | jobs
by quasse 3391 days ago
I think you might have wanted to do some input validation: http://imgur.com/a/510dc
1 comments

I prefer sites not to validate fields they have no need for programmatic use of.

Every validation has a few users who don't pass. Names longer than expected, people with no surname, phone numbers with an "extension" code, addresses with no house number, email addresses xyz+2@8.8.8.8, etc.

Validate only what you need to to make your service work, and when you do, use an official validation library rather than baking your own.