2006-11-20

tcepsa: (Default)
2006-11-20 01:51 pm
Entry tags:

Applying Wisdom To Computer Programs {Computer Geekery}

This was inspired by Friday's Code Snippet of the Day over at The Daily WTF

public boolean myMethod( Object myObject ){
    try{
        // Extremely exception-prone error code here...
    }
    catch( Exception e ){
        log.print("Unable to perform myMethod--trying again");
        myMethod( myObject );
    }
}

My favorite definition of insanity is doing the same thing over and over and expecting the outcome to be different...