Re: The Evolution of a Programmer

Robert Harley (Robert.Harley@inria.fr)
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);}

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

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

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

Beavis:
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.

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

Beavis:
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.