David Graham wrote:

--- Henri Yandell <[EMAIL PROTECTED]> wrote:



On Sat, 28 Aug 2004, matthew.hawthorne wrote:



IMO, copy-paste reuse is the worst offense that a programmer can


commit.


I agree that it's bad news.

But, I think the worst offense is this:

try {

  // ...

} catch (Exception e) {
  return null;
}

(shudder)


How lucky you've been. Have you never seen:

try {
...
} catch(Throwable t) {
// ignore
}



At least there was a comment in there :-). I've seen a shocking number of these: catch(Throwable t) {} from programmers that "knew it wouldn't matter".

David




??? :)

Hen





_______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






Well, would

   boolean dontAsk = false;
   try {
   } catch (Throwable t) {
     dontAsk = true;
   } finally {
     if(dontAsk) System.exit(0);
   }


be worse? LOL

be worse


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to