while(true)

My project is doing fine currently, after my decision to throw away all code not written by me. I inherited the project I must add. Today I was taking the last bits of ‘foreign’ code to go through and see what functionality I am still missing. I encountered this here construct:

while(true){
    ....
    if(something){
        .... 
        break;
    }
    else {
        ....
        break;
    }
}

When I realized what was happening I wanted to cry and then laugh some. I am still not sure wether I should go kick the author somewhere it hurts. (The complete project was filled with such ‘jokes’ btw)