期刊
PROCEEDINGS OF THE 35TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING (SAC'20)
卷 -, 期 -, 页码 1532-1539出版社
ASSOC COMPUTING MACHINERY
DOI: 10.1145/3341105.3373893
关键词
Refactoring; Extract Method; Floss Refactoring; Empirical Study
类别
资金
- UFCG
- Ingenico do Brasil LTDA
- National Council for Scientific and Technological Development (CNPq)/Brazil [429250/2018-5, 315057/2018-1]
- 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.
作者
我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。
推荐
暂无数据