The Effect of Richer Visualizations on Code Comprehension

Dimitar Asenov, Otmar Hilliges and Peter Müller

Abstract

Researchers often introduce visual tools to programming environments in order to facilitate program comprehension, reduce navigation times, and help developers answer difficult questions. Syntax highlighting is the main visual lens through which developers perceive their code, and yet its effects and the effects of richer code presentations on code comprehension have not been evaluated systematically. We present a rigorous user study comparing mainstream syntax highlighting to two visually-enhanced presentations of code. Our results show that: (1) richer code visualizations reduce the time necessary to answer questions about code features, and (2) contrary to the subjective perception of developers, richer code visualizations do not lead to visual overload. Based on our results we outline practical recommendations for tool designers.

Venue
CHI 2016
Volume
Proceedings of the 2016 CHI Conference on Human Factors in Computing Systems
DOI
10.1145/2858036.2858372
PDF
https://dl.acm.org/doi/pdf/10.1145/2858036.2858372
Anthology ID
2016.chi.324

Cite

@inproceedings{asenov-etal-2016-effect,
    title = {{The Effect of Richer Visualizations on Code Comprehension}},
    author = {Dimitar Asenov and Otmar Hilliges and Peter Müller},
    booktitle = {Proceedings of the 2016 CHI Conference on Human Factors in Computing Systems},
    isbn = {9781450333627},
    year = {2016},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/2858036.2858372},
    url = {https://doi.org/10.1145/2858036.2858372},
    abstract = {Researchers often introduce visual tools to programming environments in order to facilitate program comprehension, reduce navigation times, and help developers answer difficult questions. Syntax highlighting is the main visual lens through which developers perceive their code, and yet its effects and the effects of richer code presentations on code comprehension have not been evaluated systematically. We present a rigorous user study comparing mainstream syntax highlighting to two visually-enhanced presentations of code. Our results show that: (1) richer code visualizations reduce the time necessary to answer questions about code features, and (2) contrary to the subjective perception of developers, richer code visualizations do not lead to visual overload. Based on our results we outline practical recommendations for tool designers.}
}