Jun. 27th, 2007

tn3270: (Default)
I've been doing CSS web work for some volunteer work I have been doing. CSS (and many other web languages) all have what is one of my big pet peeves on programming: silently ignoring errors.

If you make a typo, instead of giving an error message, many of the interpreters and parsers for these languages either silently ignore the error, or do the wrong thing. You can use syntax checkers in various editors, or debuggers to get around this, but it drives me nuts that the default behavior is to just ignore mistakes. I guess the thought is to hide errors from non-technical users; but someone who is not skilled in debugging most needs messages to point out their mistakes. IMHO, an error message is far more useful and friendly than just rendering the page wrong, or doing some other wrong thing quietly.

This kind of stuff is like languages that do not require you to declare variables. With such languages, if you make a typo on a variable name, instead of getting a syntax error message you get a runtime error, or even worse, an incorrect result which you may or may not notice.

Error messages are good.

Profile

tn3270: (Default)
tn3270

January 2016

S M T W T F S
     12
3456 789
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 17th, 2025 02:41 pm
Powered by Dreamwidth Studios