Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Your funny comments

Name: Anonymous 2006-08-28 9:04

Talk about funny comments you write/find in code you work with.

I've produced fine stuff like:

/** WARNING: This code is database-dependent.
 * I don't give two hoots about it.
----------
// Get DTD seelction from theme
// <some code I just commented>
//Only not...
----------
if <some UI assertion failed>:
    stupid = True

#then, later on

if stupid:
    <display some extra help>

Name: Anonymous 2006-08-28 9:18

>>1
My code tags failed it or so it seems, I meant:

/** WARNING: This code is database-dependent.
 * I don't give two hoots about it.

----------

// Get DTD seelction from theme
// <some code I just commented>
//Only not...

----------

if <some UI assertion failed>:
      stupid = True

#then, later on

if stupid:
      <display some extra help>

Name: Anonymous 2006-08-29 22:23 (sage)

www.thedailywtf.com is relevant

Name: Anonymous 2010-06-27 12:57

ur gay

Name: Anonymous 2010-06-27 13:52

my homework is to read the first chapter of SICP: Can someone do that for me please so I don't have to??

Name: Anonymous 2010-06-28 10:58

beware the army of 12 year old autistics

Name: Anonymous 2010-06-29 0:53

Here's my best:
/* this block does not work, will be fixed when I give a damn */

Name: Anonymous 2010-06-29 1:21

#ifdef SKYNET

Name: Anonymous 2010-06-29 1:50

So I just spent the past 15 minutes grepping my codebase for comments and found very little humorous. Apparently I'm not funny. This is all I found that was relevant, and it isn't even really a joke:

// C++ is officially fucking retarded. you have to define an implementation
// of pure virtual destructors.                                           
Foo::~Foo() {}

Name: Anonymous 2010-06-29 1:59

Name: Anonymous 2010-06-29 3:04

>>9
my codebase
What do you need pure virtual destructors for in a fibs implementation?

Name: Anonymous 2010-06-29 11:46

In my scripts, I'll sometimes have an if-elseif-else structure where the if and elseif bits covers all the "possible" values, then in the final else part, I'll put something like:
    die "Programmer assumption failed. Replace programmer and press F2 to continue";

Name: Anonymous 2010-06-29 11:53

HA HA I'M FUNNY PROGRAMMING JOKES GET IT

Name: Anonymous 2010-06-29 13:04

    function redirect($relpath)
    {
        if (!headers_sent()) {
            header('HTTP/1.1 302 Found');
            header("Location: $relpath");
        } else {
            // uhhh
            throw new AuthException(AuthException::REDIRECT_ERROR);
        }
    }


I'm not usually this much of a php braindead asshole, I promise. It's the language's fault, really.

Name: Anonymous 2010-06-29 14:15

Just read it..

Name: Anonymous 2010-06-29 14:27


        foreach ($profiles as $v) {
            $vtags = unserialize($v['tags']);
            $vpermissions = unserialize($v['permissions']);
            $vforum = unserialize($v['fora']);
            if (!is_array($vtags) || !is_array($vpermissions) || !is_array($vforum)) {
                trigger_error('Invalid BBCode data.', E_USER_NOTICE);
                return;
            }
            foreach (array('permissions', 'forum') as $w) {
                if (!empty(${'v'.$w})) {
                    if (!isset(${$w}[$v['priority']])) {
                        ${$w}[$v['priority']] = array();
                    }
                    foreach (${'v'.$w} as $vps) {
                        if (!isset(${$w}[$v['priority']][$vps])) {
                            ${$w}[$v['priority']][$vps] = array();
                        }
                        if (!isset(${$w}[$v['priority']][$vps][$v['grp']])) {
                            ${$w}[$v['priority']][$vps][$v['grp']] = array();
                        }
                        foreach ($vtags as $st) {
                            if (!isset($tags[$st])) {
                                trigger_error("Tag name " . $st . " doesn't exist.", E_USER_NOTICE);
                                continue;
                            }
                            ${$w}[$v['priority']][$vps][$v['grp']][$st] = &$tags[$st];
                        } // Oo-o, Z just wants to have fu-uhn.
                    }
                }
            }
        }

        ksort($permissions, SORT_NUMERIC);
        ksort($forum, SORT_NUMERIC);

        $o['forum'] = $o['permissions'] = $o = array();
        foreach ($o as $k => &$v) { // Collapse array.
            foreach ($$k as $v2) {
                $v[] = $v2;
            }
        }
        return $o;

Name: Anonymous 2010-06-29 14:31

props to you sir

Name: Anonymous 2010-06-29 15:03

The only remotely funny thing I found is only funny when taken out of context;

// just in case the user has a blowtorch;

Name: Anonymous 2010-06-29 15:17

I always label my signal handling function with We get signal.
( ._.)

Name: Anonymous 2010-06-29 20:06

>>19
I always write /* MAIN SCREEN TURN ON */ before main, and /* It's You!! */ after authentication success.
( ._.)

Name: Anonymous 2010-06-29 22:06

grep bitched fs/jffs2/debug.c

Name: Anonymous 2010-10-21 7:56

/* Let father know we died */

Name: Anonymous 2010-10-21 8:05

This thread is incredibly awful.
Please stop.

Name: Anonymous 2010-10-21 8:13

>>23
Please stop being trolled!

Name: Anonymous 2010-10-21 9:52

This thread is incredibly awesome.
Please continue.

Name: Anonymous 2010-10-21 13:04

// this is an other bug of silverlight. I bet the jews did this.

Name: Anonymous 2012-03-28 2:23

my farts burn my anus
it hurts
in a good way

Name: Sgt.Kabu鄻kiman땕␺ 2012-05-28 19:57

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List