首页> 外文期刊>Empirical Software Engineering >Assessing the capability of code smells to explain maintenance problems: an empirical study combining quantitative and qualitative data
【24h】

Assessing the capability of code smells to explain maintenance problems: an empirical study combining quantitative and qualitative data

机译:评估代码气味以解释维护问题的能力:结合定量和定性数据的实证研究

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

摘要

Code smells are indicators of deeper design problems that may cause difficulties in the evolution of a software system. This paper investigates the capability of twelve code smells to reflect actual maintenance problems. Four medium-sized systems with equivalent functionality but dissimilar design were examined for code smells. Three change requests were implemented on the systems by six software developers, each of them working for up to four weeks. During that period, we recorded problems faced by developers and the associated Java files on a daily basis. We developed a binary logistic regression model, with "problematic file" as the dependent variable. Twelve code smells, file size, and churn constituted the independent variables. We found that violation of the Interface Segregation Principle (a.k.a. ISP violation) displayed the strongest connection with maintenance problems. Analysis of the nature of the problems, as reported by the developers in daily interviews and think-aloud sessions, strengthened our view about the relevance of this code smell. We observed, for example, that severe instances of problems relating to change propagation were associated with ISP violation. Based on our results, we recommend that code with ISP violation should be considered potentially problematic and be prioritized for refactoring.
机译:代码异味是更深层设计问题的指示器,这些问题可能会导致软件系统的开发困难。本文研究了十二种代码气味反映实际维护问题的能力。检查了四个功能相同但设计不同的中型系统的代码气味。六个软件开发人员在系统上实施了三个变更请求,每个变更开发人员工作长达四个星期。在此期间,我们每天记录开发人员和相关Java文件面临的问题。我们开发了一个以“问题文件”为因变量的二进制逻辑回归模型。十二个代码的气味,文件大小和搅动构成了独立变量。我们发现违反接口隔离原则(又称ISP违反)显示出与维护问题最紧密的联系。开发人员在每日访谈和思考型会议中报告的问题性质分析增强了我们对此代码气味的相关性的看法。例如,我们观察到,与变更传播相关的严重问题实例与ISP违规有关。根据我们的结果,我们建议应该将违反ISP的代码视为潜在问题,并优先考虑进行重构。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号