Skip to main content

New answers tagged

0 votes

Is it still "feature envy" if the state to make decision or the action to take after asking the state involves other classes to participate?

The answer by @Doc Brown gives really highlights the fact that you need to be thinking and planning your code well. I just wanted to add a concrete example of what I would do with your code. In this ...
Luke Nelson's user avatar
6 votes

Is it still "feature envy" if the state to make decision or the action to take after asking the state involves other classes to participate?

if a class asks another class for the state, and then call methods of that class, it should move the code into the object as an instance method No, that is not what the cited answer says. It says As ...
Doc Brown's user avatar
  • 210k

Top 50 recent answers are included