RePOR: Mimicking humans on refactoring tasks. Are we there yet?
Rodrigo Morales, Foutse Khomh, Giuliano Antoniol

TL;DR
This study evaluates whether automated refactoring tools can produce code that is as understandable as human refactoring, through empirical tests involving developer surveys and comprehension tasks.
Contribution
It provides empirical evidence on the effectiveness of RePOR, an automated refactoring approach, in producing code comparable to human refactoring in terms of understandability.
Findings
Automated refactoring can produce code comparable to human refactoring in understandability.
Developers often cannot distinguish between human and machine-generated refactoring.
Current technology limitations still exist but show promising results.
Abstract
Refactoring is a maintenance activity that aims to improve design quality while preserving the behavior of a system. Several (semi)automated approaches have been proposed to support developers in this maintenance activity, based on the correction of anti-patterns, which are `poor' solutions to recurring design problems. However, little quantitative evidence exists about the impact of automatically refactored code on program comprehension, and in which context automated refactoring can be as effective as manual refactoring. Leveraging RePOR, an automated refactoring approach based on partial order reduction techniques, we performed an empirical study to investigate whether automated refactoring code structure affects the understandability of systems during comprehension tasks. (1) We surveyed 80 developers, asking them to identify from a set of 20 refactoring changes if they were…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
