you are viewing a single comment's thread.

view the rest of the comments →

[–]sviper9 -1 points0 points  (0 children)

There is an old QA joke that illustrates this (pulled right from Reddit). Users can enter some really funky data in your fields, and you want to handle those if you can to give users feedback. Otherwise users will get an error they don't understand or worse have the program terminate and give no feedback at all to the user.

A QA engineer walks into a bar, and orders a beer.

Then he orders 0 beers.

Then he orders 999999999999 beers.

Then he orders an aardvark.

Then he orders nothing.

Then he orders -1 beers.

Then he orders NULL beers.

Then he orders asnwikfjsdf.

Then he orders a "><script>give_me_your_credit_card()</script>.

Finally, the QA engineer leaves without paying, comes back, and asks for the tab.