commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McGrady <m...@michaelmcgrady.com>
Subject Re: Worst offence in Java :) Re: [lang] Interpolation
Date Sun, 29 Aug 2004 15:51:38 GMT
David Graham wrote:

>--- Henri Yandell <bayard@generationjava.com> 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: commons-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>
>
>
>  
>
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message