O'Reilly logo

Flexible Rails: Flex 3 on Rails 2 by Peter Armstrong

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Validation

Make it idiot-proof, and someone will make a better idiot.

Unknown

Adding error-checking and -handling to a GUI application (desktop or web) is something that is usually an afterthought and a horribly tedious chore. Most programmers hate the task, but we have to do it: We can’t just pop up a dialog saying “O NOES!!”—much as we’d like to—if the user does anything wrong. And no matter how simple and elegant we make our applications, two forces are against us:

  • In the Real World, services go down (server crashes, database issues, and so on).
  • The world is full of, um, less sophisticated users.

Worse yet, even advanced UI frameworks have historically provided basically nothing as far as a standard validation framework. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required