Slashdot Mirror


2004 IOCCC Winners Source Code Released

Langly writes "The IOCCC have finally released their source code for 2004. My thoughts goes out to the poor guys that actually wrote this code. Reader discretion is advised." Every time I see an obfuscated code contest, I wonder if 'Winner' is the right word to describe the victor ;)

4 of 175 comments (clear)

  1. Re:frist? by gorre · · Score: 3, Insightful

    Arrggh, main returns an int god dammit!

    --
    "Madness is something rare in individuals - but in groups, parties, peoples, ages it is the rule." -- Nietzsche
  2. Re:frist? by aled · · Score: 2, Insightful

    So what? it's just a warning. Much the better to ofuscation.

    --

    "I think this line is mostly filler"
  3. Re:ouch by ajs · · Score: 5, Insightful

    I'm so tired of this. Every time the IOCCC winners are announced someone has to go off on how unmaintainable the code is.

    For those who are unable to grasp the point, I'll say it slowly: this code is written by people who understand C well enough to twist it into any shape they please. Of course, they could write clean, maintainable code, but then they would LOSE the competition. The goal is to write obfuscated code.

    The IOCCC is an expression of source-code as art in a compettitive forum. If that isn't your cup of tea, don't hurt your brain by reading the submissions.

  4. Re:frist? by pchan- · · Score: 4, Insightful
    It also doesn't take a void argument.

    sure it does. int main(void) is completely legitimate. there's no reason why your program needs to take in commandline arguments. the loader will probably pass them to you anyway, but you don't need to acknowledge their existance.
    $ cat x.c
    #include <stdio.h>

    int main(void)
    {
    printf("sweet\n");
    return 0;
    }

    $ gcc -Wall -std=c99 x.c
    $