• Welcome to Computer Association of SIUE - Forums.
 

Funny Comments in code

Started by Brian Cunningham, 2009-04-24T12:55:39-05:00 (Friday)

Previous topic - Next topic

Brian Cunningham

http://stackoverflow.com/questions/184618?sort=votes

my favorite in the comments

//There can Only Be one HIGHLAN....err..Singleton
public class SomeSingleton
{
...
}

SIUE Alumni

Robert Kennedy

Some of those are hilarious.  My favorite...

{
  {
    while (.. ){
      if (..){
          }
      for (.. ){
          }
         .... (just putting in the control flow here, imagine another few hundred ifs)
      if(..)   {
            if(..)     {
                   if(..)   {
                ...
                (another few hundred brackets)
                       }
                  }
         } //endif

Tangent Orchard

Ahaha, awesome.  For some reason this one was one of my favorites:

if(m_measures =/*=*/ --index)
{ ...

And the last ones on the first page really reminded me of this: