Design Patterns · Middle · Question 32 of 75

What is feature envy?

Explanation

If an OrderView method keeps reaching into customer's fields and computing things from them, the logic should move closer to the data - into the customer module. This increases cohesion and simplifies changes.

Further reading

Problem with a question

Design Patterns · Middle · question 32

Test yourself

Take the Design Patterns · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz