Reconciling manual and automatic refactoring

Xi Ge, Quinton L. DuBose, Emerson Murphy-Hill

2012 · 77 citations · 16 references

Concepts

TL;DR

Refactoring tools are useful and widely available yet underused, partly because developers often fail to recognize the need to refactor before starting manual refactoring. The study aimed to investigate developers' manual refactoring process and design a tool that reduces refactoring tool underuse. We designed BeneFactor, a tool that detects manual refactoring, reminds developers of available automatic refactoring, and can perform the refactoring automatically. The study identified manual refactoring workflow patterns and showed that BeneFactor can alleviate the burden of recognizing manual refactoring, thereby addressing tool underuse.

Abstract

Although useful and widely available, refactoring tools are underused. One cause of this underuse is that a developer sometimes fails to recognize that she is going to refactor before she begins manually refactoring. To address this issue, we conducted a formative study of developers' manual refactoring process, suggesting that developers' reliance on "chasing error messages" when manually refactoring is an error-prone manual refactoring strategy. Additionally, our study distilled a set of manual refactoring workflow patterns. Using these patterns, we designed a novel refactoring tool called BeneFactor. BeneFactor detects a developer's manual refactoring, reminds her that automatic refactoring is available, and can complete her refactoring automatically. By alleviating the burden of recognizing manual refactoring, BeneFactor is designed to help solve the refactoring tool underuse problem.

References

16