3.8 Proceedings Paper

An Exploratory Study on Extract Method Floss-Refactoring

出版社

ASSOC COMPUTING MACHINERY
DOI: 10.1145/3341105.3373893

关键词

Refactoring; Extract Method; Floss Refactoring; Empirical Study

资金

  1. UFCG
  2. Ingenico do Brasil LTDA
  3. National Council for Scientific and Technological Development (CNPq)/Brazil [429250/2018-5, 315057/2018-1]
  4. UFCG/CNPq

向作者/读者索取更多资源

As a software evolves its code requires constant updating. In this sense, refactoring edits aim at improving structural aspects of a code without changing its external behavior. However, studies show that developers tend to combine in a single commit refactorings and behavior-changing edits (extra edits) - floss-refactoring. Floss-refactorings can be error-prone and require careful handling. However, little has been done to understand how refactorings and extra edits relate in practice. In this work, we propose a strategy for extracting floss-refactoring data. Moreover, we mine code repositories of 16 open-source projects and analyse commits with floss refactoring related to Extract Method. Our results show that developers often combine Extract Method with inner method extra edits (e.g., statement insert), with an expected increase of 8-16% of extra edits by each Extract Method. Moreover, some statements are more likely to be changed depending on the extra edit performed.

作者

我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。

评论

主要评分

3.8
评分不足

次要评分

新颖性
-
重要性
-
科学严谨性
-
评价这篇论文

推荐

暂无数据
暂无数据