ab·surd·li

Exceptions

and what to do with them. Quoting from an interesting article over at theregister.co.uk:

If you are running as a GUI program, now’s the time to pop up a modal message box. It doesn’t really matter what text you put in it, because the user will ignore it.

A refinement, especially popular with Delphi programmers, is to put up further, identical message boxes at a one half second interval, so that unless the user intervenes and starts closing them at a greater rate, the whole system will eventually die from memory exhaustion.

That’s what I’ve been doing all along. Nice to be right, isn’t it? The article concludes with this:

The primary duty of an exception handler is to get the error out of the lap of the programmer and into the surprised face of the user. Provided you keep this cardinal rule in mind, you can’t go far wrong.

Here’s the full article: Catch as catch can