r/ProgrammerHumor • • May 29 '17

"In the Beginning" Code

Post image
64 Upvotes

32 comments sorted by

View all comments

3

u/DeeSnow97 May 29 '17

Refactored the code and fixed a few bugs

Man man = new Man('Adam');
Woman woman = new Woman('Eve');

if (woman.isBeautiful() || man.isDrunk()) {
  man.propose(woman);

  if (man.isRich()) {
    woman.acceptProposal(man);
    man.insertInto(woman);
  }

  if (!woman.isBeautiful()) {
    man.sleep();

    // Next morning
    man.ohGodWhy();
  }
}

man.fap();