Feature envy
Meaning in software engineering, with examples
In software engineering, feature envy means: A code smell where a method relies heavily on another object's data, suggesting its responsibility may be misplaced.
In Turkish: başka sınıfın verisine aşırı bağımlılık
How it is used
Used in object-oriented reviews. External data access alone is not enough to justify moving a method.
Example sentences
The pricing method showed feature envy by repeatedly reading the order's internal fields.
Repeated access raises the question of whether the behavior belongs closer to the order data.
The reviewer suspected feature envy but kept the calculation in a separate policy object.
A deliberate policy boundary can outweigh the smell; the label is a clue, not a rule.
Common collocations
- detect feature envy
- feature envy code smell
Related terms
More terms: Code Review and Code Quality
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
