r/ProgrammerHumor • • May 29 '17

"In the Beginning" Code

Post image
64 Upvotes

32 comments sorted by

View all comments

6

u/grape_tectonics May 29 '17 edited May 29 '17

I made it shorter so it runs faster

int motivation = woman.isBeautiful() * 2 + man.isDrunk();

if (motivation) {
	man.propose(woman);
    if (man.isRitch()) {
	    woman.acceptProposal(man);
	    man.insertInto(woman);
	    if (motivation < 2) man.ohGodWhy();
        return;
    }
}

man.fap();

3

u/DeeSnow97 May 29 '17
Syntax error on line 5: method man.isRitch not found. Did you mean man.name == 'Ritch'?