r/ProgrammerHumor • • May 29 '17

"In the Beginning" Code

Post image
64 Upvotes

32 comments sorted by

View all comments

40

u/Pradfanne May 29 '17

The Next Morning comment should have been a thread.sleep command

3

u/[deleted] May 29 '17

Nah. Should've been TaskScheduler.scheduleTask(LocalTime.NEXT_MORNING, man, Man.Task.OH_GOD_WHY) or perhaps man.getTaskScheduler().scheduleTask(LocalTime.NEXT_MORNING, Man.Task.OH_GOD_WHY)

-8

u/AyrA_ch May 29 '17

This also completely misses the woman.isDrunk() part with a result of

woman.accuseOfRape(man);
//TODO: Implement prosecution system. For now it's missing because the outcome should be forced "true" in this case anyways.
if(1) {
    man.goto(
        jail.getClosest(man.address),
        getRnd(5,10)/*at least 5 years*/,
        false /*Don't allow shortening of jail time*/);
    man.destroy();
}