Wednesday, 27 February 2013

Funniest Source Code Comments

Yesterday i read a blog about funny source code comments in JavaCodeGeeks
i followed the link to StackOverFlow Poll from where this post is sourced . I read comments on stackoverflow also , could not help myself stop laughing . Sharing some more hilarious comments :


// no comments for you
// it was hard to write
// so it should be hard to read


virgin = 0; /* you're not a virgin anymore, sweety */


/*
after hours of consulting the tome of google
i have discovered that by the will of unknown forces
without the below line, IE7 believes that 6px = 12px
*/
font-size: 0px;


!!!!!!!IF YOU CHANGE TABS TO SPACES, YOU WILL BE KILLED!!!!!!! *
!!!!!!!!!!!!!!DOING SO FUCKS THE BUILD PROCESS!!!!!!!!!!!!!!!! *
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!



public boolean isDirty() {
    //Why do you always go out and
    return dirty;
}


// simply copied from another code


// This condition can't happen. Call the police or something.

// Hardcoded this for time sake ... will make andrew fix later :)

i++; // increment variable i

return 0; // Happy ending

$you = live("free") or die("hard");

# This job would be great if it wasn't for the fucking customers.


// Dijkstra probably hates me.


using namespace std;            // So sue me
Post more comments !!!