Reputation
312
Next privilege 500 Rep.
Access review queues
Badges
1 4 8
Impact
~34k people reached

Apr
4
comment Why is XML called a “language” exactly?
I'd argue that human languages do "do" things. See Speech-Act Theory...
Jan
6
awarded  Favorite Question
Jul
21
answered Why use getters only as opposed to marking things final?
Apr
23
awarded  Famous Question
Nov
7
awarded  Notable Question
May
10
awarded  Scholar
May
10
accepted Is it wrong to use a boolean parameter to determine behavior?
May
10
comment Is it wrong to use a boolean parameter to determine behavior?
The question is not about what is preferable to a behavior determining flag, it's whether such a flag a smell, and if so, why
May
10
awarded  Popular Question
May
10
comment Is it wrong to use a boolean parameter to determine behavior?
Very nice explanation of cohesion and it's application. This really should get more votes. And I do agree with the security issue as well... though if they are all private methods it's a smaller potential vulnerability
May
10
awarded  Good Question
May
10
awarded  Yearling
May
10
awarded  Editor
May
10
revised Is it wrong to use a boolean parameter to determine behavior?
changed language to Java instead of C
May
10
suggested approved edit on Is it wrong to use a boolean parameter to determine behavior?
May
10
awarded  Commentator
May
10
revised Is it wrong to use a boolean parameter to determine behavior?
removed java tag
May
10
comment Is it wrong to use a boolean parameter to determine behavior?
Rob, would you give some explanation of what Cohesion is and how it applies?
May
10
awarded  Critic
May
10
comment Is it wrong to use a boolean parameter to determine behavior?
I'm partial to your solution as a big Guava lover and evangelist... but I can't give you a +1, because you skip over the part I'm really looking for, which is what is wrong (or smelly) about the other way. I think it's actually implicit in some of your explanations, so maybe if you could make that explicit, it would answer the question better.