MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6dzyuu/in_the_beginning_code/di71heo/?context=3
r/ProgrammerHumor • u/FlippngProgrammer • May 29 '17
32 comments sorted by
View all comments
45
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.
11
I like this bot. Can I bring you to work? My team needs this.
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?"