An interactive ambient visualization for code smells

  • Authors:
  • Emerson Murphy-Hill;Andrew P. Black

  • Affiliations:
  • North Carolina State University, Raleigh, NC, USA;Portland State University, Portland, OR, USA

  • Venue:
  • Proceedings of the 5th international symposium on Software visualization
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

Code smells are characteristics of software that indicate that code may have a design problem. Code smells have been proposed as a way for programmers to recognize the need for restructuring their software. Because code smells can go unnoticed while programmers are working, tools called smell detectors have been developed to alert programmers to the presence of smells in their code, and to help them understand the cause of those smells. In this paper, we propose a novel smell detector called Stench Blossom that provides an interactive ambient visualization designed to first give programmers a quick, high-level overview of the smells in their code, and then, if they wish, to help in understanding the sources of those code smells. We also describe a laboratory experiment with 12 programmers that tests several hypotheses about our tool. Our findings suggest that programmers can use our tool effectively to identify smells and to make refactoring judgements. This is partly because the tool serves as a memory aid, and partly because it is more reliable and easier to use than heuristics for analyzing smells.