The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

errors by perldude2006-11-19 12:55:59
  That last statement... by HadEnuf2002-06-11 13:34:49
    Said what I meant, meant what I said by perldude2002-06-11 16:58:29
      To put it more simply... by Schol-R-LEA;2 2002-06-11 21:54:43
If I understand what you are saying, it seems to me that your really talking about the difference between exceptions (i.e., known possible failure modes or anticipated unusual occurences), and programming errors (mistakes made by the developer). If so, your previous posts could be rewritten as:
  • Errors are not exceptions, and shouldn't be treated as such - coding around an error or trapping it is still a programming mistake;
  • It is better for an error to be fatal (cause the program to halt) rather than continue running in an unstable manner;
  • Most 'exceptions' come programming errors, not failure conditions; and
  • Failing to anticipate failure modes is a programming error; the programmer should have known every possible failure mode in advance.

    I think that the last one is the most troublesome, since in real-world programing, coders often have to work with incomplete or inaccurate information. Defensive programming means you still should handle those cases as gracefully as possible, even if that only means shut down properly and restart rather than panic and core dump. At the very least, such a fatal bug should report that the program and/or hardware slipped into a seemingly impossible state, so the programmers have something to work with when they go to fix it. The same applies to fatal errors, when possible, though of course a wild pointer or memory screw that causes a program to run away can't do much in the way of error reporting.
  • [ Reply ]

     

    [Todays Cartoon Discussion] [News Index]

    Come get yer ARS (Account Registration System) Source Code here!
    All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
    UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)