May 10, 2012

Three things I have learned about error checking/validation from coding:

  1. Never trust the error message.
  2. Never trust the line number given.
  3. One stray character can screw everything up!

2 comments:

Donn Edwards said...

I couldn't agree with you more.

4. If the error message doesn't make sense, it is usually misleading. Microsoft Access does this often.

Steve said...

Thankfully, I do not have to deal with Microsoft Access that often. I use it for some simple things, but go to MySQL when I can. Still, I do have to support some Microsoft Access users. The weirdest thing I've seen is a database setup for multiple users somehow being locked out by a user, though there was no reason for it.