Feature envy factor: A metric for automatic feature envy detection
As a software system evolves, its design get deteriorated and the system becomes difficult to maintain. In order to improve such an internal quality, the system must be restructured without affecting its external behavior. The process involves detecting the design flaws (or code smells) and applying...
Saved in:
Published in | 2015 7th International Conference on Knowledge and Smart Technology (KST) pp. 7 - 12 |
---|---|
Main Author | |
Format | Conference Proceeding |
Language | English |
Published |
IEEE
01.01.2015
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | As a software system evolves, its design get deteriorated and the system becomes difficult to maintain. In order to improve such an internal quality, the system must be restructured without affecting its external behavior. The process involves detecting the design flaws (or code smells) and applying appropriate refactorings that could help remove such flaws. One of the design flaws in many object-oriented systems is placing members in the wrong class. This code smell is called Feature Envy and it is a sign of inappropriate coupling and cohesion. This work proposes a metric to detect Feature Envy code smell that can be removed by relocating the method. Our evaluation shows promising results as the overall system's complexity is reduced after suggested Move Method refactorings are applied. |
---|---|
ISBN: | 9781479960484 1479960489 |
DOI: | 10.1109/KST.2015.7051460 |