Last Updated: February 25, 2016
·
1.46K
· nirgavish

Validation is (mostly) dead.

Let me just say it flat-out right at the start: Most of the validation your application is engaged in - is detrimental to your business, your UX and to common sense.

I stumbled across this realization quite recently, while working on a consumer-facing web application that probably had one of the more intricate data models I had to contend with.

The problem with intricate data, is that sometimes it comes incomplete, and sometimes has a wrong value that is not really wrong. For example: You might write down your phone number with dashes, when an application is expecting only numerics. These inner rules for your data are sometimes so arbitrary, that people within your organization can't even remember them.

Picture

The reason for this is that the database is dictating the allowed data formatting and data-object types, and this authority trickles into the UI.

It shouldn't.

I found that the only places I would ever possibly need real, hard validation - would be at the gates: during registration and login. Almost all other data will be better off checked, sanitized, set to default or null values if necessary, but never EVER returned to the user as a list of little red tooltips over the fields they "failed to fill".

Picture

Back in the day, the pattern of submitting a form and then re-displaying it if the database rejected it was very common - Today, however, users expect to be assisted by the application, for example: see a "New File" label if they didn't set a 'filename'. This expectation is something that isn't going away. Users demand (and should receive) a smooth experience, devoid of the pain of rejection.

I have found that a proper editing mechanism, with the proper visual feedback, has an infinitely better UX value than traditional validation. Our users may sometimes give us "wrong" data, but we sure as hell need to be able to handle it, not bitch about it.

The use of sanitation function rather than validation functions just seems like good UX to me. Keep your database schema out of your user's way. It's your problem, not theirs.

Picture

4 Responses
Add your response

Hmm, I jumped in here to say that sometimes the format actually need to be correct, and you have no choice but to validate and reject if wrong. But then I took a look at the app I am working on, which has, currently, lots of validations (and validation bugs. It's very alpha, yet), and I couldn't find a single field where a better form control (that naturally limits the user input) or a sanitation function couldn't do a better job. So, maybe you're right.
Any way, I got some food for thought.

over 1 year ago ·

Wow! Thanks :) Pun intended, getting validation for this idea feels good :)

over 1 year ago ·

If you've read Cooper's About Face 15 years ago like I told you, you would have found out about this then and not now...

Tomer

over 1 year ago ·

Hi man!
On the contrary. I'm quite happy not having read "About Face", that way I can have the illusion of having had an original thought, and you can have the illusion of having told me off. It's a win-win. :) All my love.

over 1 year ago ·