The Community for Technology Leaders
RSS Icon
Subscribe
Issue No.06 - Nov.-Dec. (2012 vol.38)
pp: 1417-1431
Emerson Murphy-Hill , North Carolina State University, Raleigh
Andrew P. Black , Portland State University, Portland
ABSTRACT
Refactoring tools, common to many integrated development environments, can help programmers to restructure their code. These tools sometimes refuse to restructure the programmer's code, instead giving the programmer a textual error message that she must decode if she wishes to understand the reason for the tool's refusal and what corrective action to take. This paper describes a graphical alternative to textual error messages called Refactoring Annotations. It reports on two experiments, one using an integrated development environment and the other using paper mockups, that show that programmers can use Refactoring Annotations to quickly and accurately understand the cause of refactoring errors.
INDEX TERMS
Taxonomy, Programming, Prototypes, Visualization, Java, tools, Refactoring, refactoring errors, usability, programmers
CITATION
Emerson Murphy-Hill, Andrew P. Black, "Programmer-Friendly Refactoring Errors", IEEE Transactions on Software Engineering, vol.38, no. 6, pp. 1417-1431, Nov.-Dec. 2012, doi:10.1109/TSE.2011.110
REFERENCES
[1] T.R. Andersen, "Extract Method: Error Message Should Indicate Offending Variables," bug report, https://bugs.eclipse.org89942, Apr. 2005.
[2] B. Daniel, D. Dig, K. Garcia, and D. Marinov, "Automated Testing of Refactoring Engines," Proc. Sixth Joint Meeting of the European Software Eng. Conference and the ACM SIGSOFT Symp. The Foundations of Software Eng., pp. 185-194, 2007.
[3] M.D. Ernst, "Practical Fine-Grained Static Slicing of Optimized Code," Technical Report MSR-TR-94-14, Microsoft Research, Redmond, Wash., July 1994.
[4] J. Ferrante, K.J. Ottenstein, and J.D. Warren, "The Program Dependence Graph and Its Use in Optimization," ACM Trans. Programming Languages and Systems, vol. 9, pp. 319-349, July 1987.
[5] R.B. Findler, J. Clements, C. Flanagan, M. Flatt, S. Krishnamurthi, P. Steckler, and M. Felleisen, "DrScheme: A Programming Environment for Scheme," J. Functional Programming, vol. 12, pp. 369-388, 2002.
[6] M. Fowler, Refactoring: Improving the Design of Existing Code. Addison-Wesley, 1999.
[7] W.G. Griswold, "Program Restructuring as an Aid to Software Maintenance," PhD thesis, Univ. of Washington, Seattle, 1992.
[8] T.D. Hendrix, J.H.C. II, S. Maghsoodloo, and M.L. McKinney, "Do Visualizations Improve Program Comprehensibility? Experiments with Control Structure Diagrams for Java," Proc. 31st SIGCSE Technical Symp. Computer Science Education, pp. 382-386, 2000.
[9] M. Hitz and B. Montazeri, "Measuring Coupling and Cohesion in Object-Oriented Systems," Proc. Int'l. Symp. Applied Corporate Computing, 1995.
[10] W. Joy and M. Horton, "An Introduction to Display Editing with vi," Univ. of California, Berkeley, 1984.
[11] G. Kniesel and H. Koch, "Static Composition of Refactorings," Science of Computer Programming, vol. 52, special issue on program transformation, pp. 9-51, Aug. 2004.
[12] S.K. Kummerfeld and J. Kay, "The Neglected Battle Fields of Syntax Errors." Proc. Fifth Australasian Conf. Computing Education, pp. 105-111, 2003.
[13] E. Mealy, D. Carrington, P. Strooper, and P. Wyeth, "Improving Usability of Software Refactoring Tools," Proc. Australian Software Eng. Conf., pp. 307-318, 2007.
[14] E. Murphy-Hill, "Programmer-Friendly Refactoring Tools," PhD thesis, Portland State Univ., 2009.
[15] E. Murphy-Hill and A.P. Black, "Breaking the Barriers to Successful Refactoring: Observations and Tools for Extract Method," Proc. 30th Int'l Conf. Software Eng., pp. 421-430, 2008.
[16] E. Murphy-Hill, C. Parnin, and A.P. Black, "How We Refactor and How We Know it," Proc. 31st Int'l Conf. Software Eng., 2009.
[17] J. Nielsen, "Ten Usability Heuristics," Internet, http://www. useit.com/papers/heuristicheuristic_list.html , 2005.
[18] W.F. Opdyke, "Refactoring Object-Oriented Frameworks," PhD thesis, Univ. of Illinois at Urbana-Champaign, Urbana-Champaign, 1992.
[19] P.C. Rigby and S. Thompson, "Study of Novice Programmers Using Eclipse and Gild," Proc. OOPSLA Workshop Eclipse Technology eXchange, pp. 105-109, 2005.
[20] D. Roberts, J. Brant, and R. Johnson, "A Refactoring Tool for Smalltalk," Theory and Practice of Object Systems, vol. 3, no. 4, pp. 253-263, 1997.
[21] B. Shneiderman, "System Message Design: Guidelines and Experimental Results," Directions in Human/Computer Interaction, A. Badre and B. Shneiderman, eds., chapter 3, pp. 55-78, Ablex Publishing Corporation, 1982.
[22] Z. Xing and E. Stroulia, "Refactoring Practice: How It Is and How It Should Be Supported—An Eclipse Case Study," Proc. IEEE 22nd Int'l Conf. Software Maintenance, pp. 458-468, 2006.
29 ms
(Ver 2.0)

Marketing Automation Platform Marketing Automation Tool