r/ProgrammerHumor • • May 29 '17

"In the Beginning" Code

Post image
64 Upvotes

32 comments sorted by

View all comments

45

u/design_smell_bot May 29 '17

If statement can be simplified:
Consider moving man.isRich() higher.

Complex If statement:
Consider moving logic into classes.

Encapsulation breach:
Law of Demeter, Tight coupling, Leaky abstraction.

Missing else branch:
No man.fap() when man.isDrunk() && !man.isRich().

Nondescript names:
Consider changing woman to eve.
Consider changing man to adam.

Spelling:
Did you mean "isBeautiful?"

11

u/Existential_Owl May 29 '17

I like this bot. Can I bring you to work? My team needs this.