arrow
返回

Identifying Extract Method Refactoring Opportunities Based on Functional Relevance

delete2017-10-01
delete27
delete
OA
AI
S
Sofia Charalampidou *
A
Apostolos Ampatzoglou
A
Alexander Chatzigeorgiou
A
Antonios Gkortzis
P
Paris Avgeriou
DOI:10.1109/TSE.2016.2645572delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
'Extract Method' is considered one of the most frequently applied and beneficial refactorings, since the corresponding Long Method smell is among the most common and persistent ones. Although Long Method is conceptually related to the implementation of diverse functionalities within a method, until now, this relationship has not been utilized while identifying refactoring opportunities. In this paper we introduce an approach (accompanied by a tool) that aims at identifying source code chunks that collaborate to provide a specific functionality, and propose their extraction as separate methods. The accuracy of the proposed approach has been empirically validated both in an industrial and an open-source setting. In the former case, the approach was capable of identifying functionally related statements within two industrial long methods (approx. 500 LoC each), with a recall rate of 93 percent. In the latter case, based on a comparative study on open-source data, our approach ranks better compared to two well-known techniques of the literature. To assist software engineers in the prioritization of the suggested refactoring opportunities the approach ranks them based on an estimate of their fitness for extraction. The provided ranking has been validated in both settings and proved to be strongly correlated with experts' opinion.
Keyword:
Design tools and techniques
object-oriented programming
metrics/measurement
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

IEEE Transactions on Software Engineering 封面图
IEEE Transactions on Software Engineering
IF:
5.6
论文数:
2.9K
被引数:
1.1W

机构

U
University of Groningen
学者数:
4.4W
论文数: 4.3W
被引数: 5.9W
U
University of Macedonia
学者数:
832
论文数: 920
被引数: 536
引用论文

引用论文

err分享
err收藏
err分享
err收藏
err分享
err收藏
Genetically engineered microalgae for enhanced bioactive compounds
err2024-09-09
err0
errOAAI
errAhmad Hanafi Ahmad Kamal; Nor Farahdevah Mohd Hamidi; Muhammad Faiz Zakaria; Aziz Ahmad; Mohd Razif Harun; Thirukanthan Chandra Segaran; Malinna Jusoh
err分享
err收藏
In Vivo Characterization of a Decellularized Dermis‐Polymer Complex for Use in Percutaneous Devices
err2014-06-25
err0
PREAI
errKwangwoo Nam; Rie Matsushima; Tsuyoshi Kimura; Toshiya Fujisato; Akio Kishida
err分享
err收藏
Machine learning helps predict long-term mortality and graft failure in patients undergoing heart transplant
err2020-05-07
err0
errOAAI
errPradyumna Agasthi; Matthew R. Buras; Sean D. Smith; Michael A. Golafshar; Farouk Mookadam; Senthil Anand; Julie L. Rosenthal; Brian W. Hardaway; Patrick DeValeria; Reza Arsanjani
err分享
err收藏
Gender reversal in 46XX congenital virilizing adrenal hyperplasia
err2003-10-29
err0
PREAI
errV. SRIPATHI; S. AHMED; N. SAKATI; A. AL‐ASHWAL
err分享
err收藏
学者 查看更多内容