?

Log in

No account? Create an account
Ask Reddit: What's the funniest code you've ever seen. - Adventures in Engineering — LiveJournal
The wanderings of a modern ronin.

Ben Cantrick
  Date: 2008-08-19 14:56
  Subject:   Ask Reddit: What's the funniest code you've ever seen.
Public
  Mood:der uber-nerd
  Music:http://www.gshotts.com/humor/languages.htm
  Tags:  humor, reddit

#define like {
#define man ;}
#define an ;
#define SayBro /*
#define CheckItOut */


SayBro like, this is some rad shit, so CheckItOut

like
    a = b
        an
    c = d
man

SayBro , like who needs help from them compiler choads anyway?
THIS is the way to write CLEAR code.  I mean really!  CheckItOut

like SayBro this is ShellSort straight out of the white book, but in
a readable form.

CheckItOut man

#define YoDude for(
#define OK     )
#define is     =
#define AND    &&
#define as
#define Do
#define long
#define some
#define make
#define shit
#define FAROUT

Shell(v, n) SayBro sort v[0]...v[n-1] into increasing order CheckItOut
int v[], n;

like int gap, i, j, temp;

YoDude gap is n/2 an as long as gap > 0 Do some shit an make gap /=2 OK
YoDude i is gap an as long as i < n Do some shit an make i++ OK
    YoDude j is i - gap an as long as j >= 0 AND v[j] > v[j+gap] Do some
        shit an make j -= gap OK
        like
            temp is v[j]      an
            v[j] is v[j+gap]  an
            v[j+gap] is temp
        man
FAROUT man

SayBro like, B there OB square!  CheckItOut


http://pauillac.inria.fr/~xleroy/stuff/california-prog.html

http://www.reddit.com/comments/6wx6a/ask_reddit_whats_the_funniest_code_youve_ever_read/

See also, Google code search on "die_you_gravy_sucking_pig_dog()".
Post A Comment | | Link






browse
May 2015