首页> 外文会议>International Conference on Software and Systems Reuse >How Do Developers Refactor Code to Improve Code Reusability?
【24h】

How Do Developers Refactor Code to Improve Code Reusability?

机译:开发人员如何重构代码以提高代码可重用性?

获取原文

摘要

Refactoring is the de-facto practice to optimize software health. While there has been several studies proposing refactoring strategies to optimize software design through applying design patterns and removing design defects, little is known about how developers actually refactor their code to improve its reuse. Therefore, we extract, from 1,828 open source projects, a set of refactorings which were intended to improve the software reusability. We analyze the impact of reusability refactorings on state-of-the-art reusability metrics, and we compare the distribution of reusability refactoring types, with the distribution of the remaining mainstream refactorings. Overall, we found that the distribution of refactoring types, applied in the context of reusability, is different from the distribution of refactoring types in mainstream development. In the refactorings performed to improve reusability, source files are subject to more design level types of refactorings. Reusability refactorings significantly impact, high-level code elements, such as packages, classes, and methods, while typical refactorings, impact all code elements, including identifiers, and parameters.
机译:重构是优化软件健康的事实上的实践。虽然有几项研究提出了通过应用设计模式和消除设计缺陷来优化软件设计的重构策略,但对于开发人员如何实际重构其代码来提高其重用而毫无疑问。因此,我们从1,828个开源项目中提取了一组重构,旨在提高软件可重用性。我们分析了可重用性重构对最先进的可重用性指标的影响,我们比较可重用的重构类型的分布,其中包含剩余的主流重构的分布。总的来说,我们发现在重用性的范围内应用的重构类型的分布与主流开发中重构类型的分布不同。在执行以提高可重用性的重构中,源文件受到更多设计级别的重构类型。可重用重构显着影响,高级代码元素,例如包,类和方法,而典型的重构,影响所有代码元素,包括标识符和参数。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号