Re: The Evolution of a Programmer

Robert Harley (
Wed, 21 Aug 1996 12:14:48 +0200

> Experienced Hacker
> ===================
> #include <stdio.h>
> #define S "Hello, World\n"
> main(){exit(printf(S) == strlen(S) ? 0 : 1);}

Hey Beavis, that ass-munch used exit() without #including stdlib.

So what dork, from main() there's no point in calling exit() anyway,
he should have just used return.

Yeah, yeah, he sucks! He even used strlen without #including string.h.

Huh, huh, you said "string". But printf() returns negative on error
so the strlen() is just a waste of time, code-size and bum-wipe. Besides
any wanker knows that puts() is better than printf() here.

Even your Mom would have written:
#include <stdio.h>
int main(void){return puts("Hello, World") >= 0 ? 0 : 1);}

Shut up! There's a Metallica video on! Da dah dah da dah...


This educational episode was brought to you by the number arctan 3/5
and by the letter digamma.