Wednesday 11 October 2006

I had an interesting time today convincing a client that I had, indeed, fixed a defect, because the client kept getting an error message even though I wasn't. Once I got the client to send me a screen shot of the error message, I was able to fix it within two minutes. Any guesses why he got the message and I didn't?

He got the message because he had an advanced setting in Internet Exploder turned on that I didn't:

The offending line of code contained a common type of hard-to-spot error:

function IsSomethingValid(ctrl) {
   var retVal = false;
   // if valid, set retVal = true
   return retval;
}

The return statement contains the spelling error. In compiled languages, the compiler would flag the line, and you'd have to correct it just to run the program. JavaScript, being interpreted, doesn't blow up until it runs.

Moreover: users don't care what causes an error. The client, in this case, got an error message, and reported a regression defect caused by the original fix. But all he reported was the error, not that it came from IE's JavaScript interpreter. He didn't know where it came from. Nor did he care. Nor, not to put too fine a point on it, should he care.

Search
Navigation
Categories
On this page....
Archives
<November 2008>
SunMonTueWedThuFriSat
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456
Total Posts: 65
This Year: 1
This Month: 0
This Week: 0
Comments: 9
Blogroll
Contact me
Send mail to the author(s) E-mail RSS 2.0 Atom 1.0
Administration