首页> 外文期刊>Advances in software engineering >Exploring the Eradication of Code Smells: An Empirical and Theoretical Perspective
【24h】

Exploring the Eradication of Code Smells: An Empirical and Theoretical Perspective

机译:探索消除代码气味:经验和理论视角

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

Code smells reflect code decay, and, as such, developers should seek to eradicate such smells through application of "deodorant" in the form of one or more refactorings. However, a relative lack of studies exploring code smells either theoretically or empirically when compared with literature on refactoring suggests that there are reasons why smell eradication is neither being applied in anger, nor the subject of significant research. In this paper, we present three studies as supporting evidence for this stance. The first is an analysis of a set of five, open-source Java systems in which we show very little tendency for smells to be eradicated by developers; the second is an empirical study of a subsystem of a proprietary, C# web-based application where practical problems arise in smell identification and the third, a theoretical enumeration of smell-related refactorings to suggest why smells may be left alone from an effort perspective. Key findings of the study were that first, smells requiring application of simple refactorings were eradicated in favour of smells requiring more complex refactorings; second, a wide range of conflicts and anomalies soon emerged when trying to identify smelly code; an interesting result with respect to comment lines was also observed. Finally, perceived (estimated) effort to eradicate a smell may be a key factor in explaining why smell eradication is avoided by developers. The study thus highlights the need for a clearer research strategy on the issue of code smells and all aspects of their identification and measurement.
机译:代码气味反映了代码衰减,因此,开发人员应设法通过以一种或多种重构的形式应用“除臭剂”来消除这种气味。但是,相对于有关重构的文献,从理论上或经验上都缺乏关于探究代码气味的研究,这表明,为什么没有将消灭气味应用于愤怒,也没有进行大量研究的原因。在本文中,我们提出了三项研究作为这一立场的支持证据。首先是对五个开放源Java系统的分析,在这些系统中,开发人员几乎没有消除气味的趋势。第二个是对专有的基于C#Web的应用程序子系统的实证研究,该应用程序在气味识别中会出现实际问题,第三个是与气味相关的重构的理论枚举,以说明为什么从努力的角度来看可能会留下气味。该研究的主要发现是:首先,消除了需要进行简单重构的气味,而支持需要进行更复杂重构的气味。其次,在尝试识别臭代码时,很快出现了各种各样的冲突和异常情况。关于注释行的有趣结果也被观察到。最后,消除气味的感知(估计)努力可能是解释开发人员为何避免消除气味的关键因素。因此,本研究强调了对代码气味及其识别和测量的各个方面制定更清晰研究策略的需要。

著录项

  • 来源
    《Advances in software engineering》 |2010年第1期|p.6.1-6.12|共12页
  • 作者单位

    Department of IS and Computing, Brunei University, Uxbridge UB8 3PH, UK;

    Department of IS and Computing, Brunei University, Uxbridge UB8 3PH, UK;

    Department of IS and Computing, Brunei University, Uxbridge UB8 3PH, UK;

    Department of Information and Software Systems, University of Westminster, Harrow Campus, London HA1 4TP, UK;

    change-s.com, Westminster Borough, London, UK;

  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号