4.4 Article

The impact of identifier style on effort and comprehension

Journal

EMPIRICAL SOFTWARE ENGINEERING
Volume 18, Issue 2, Pages 219-276

Publisher

SPRINGER
DOI: 10.1007/s10664-012-9201-4

Keywords

Program comprehension; Text recognition; Coding standards; Identifier names; Memory; Identifier styles; Eye-tracking study; Code readability

Funding

  1. Division of Computing and Communication Foundations
  2. Direct For Computer & Info Scie & Enginr [0916081] Funding Source: National Science Foundation

Ask authors/readers for more resources

A family of studies investigating the impact of program identifier style on human comprehension is presented. Two popular identifier styles are examined, namely camel case and underscore. The underlying hypothesis is that identifier style affects the speed and accuracy of comprehending source code. To investigate this hypothesis, five studies were designed and conducted. The first study, which investigates how well humans read identifiers in the two different styles, focuses on low-level readability issues. The remaining four studies build on the first to focus on the semantic implications of identifier style. The studies involve 150 participants with varied demographics from two different universities. A range of experimental methods is used in the studies including timed testing, read aloud, and eye tracking. These methods produce a broad set of measurements and appropriate statistical methods, such as regression models and Generalized Linear Mixed Models (GLMMs), are applied to analyze the results. While unexpected, the results demonstrate that the tasks of reading and comprehending source code is fundamentally different from those of reading and comprehending natural language. Furthermore, as the task becomes similar to reading prose, the results become similar to work on reading natural language text. For more source focused tasks, experienced software developers appear to be less affected by identifier style; however, beginners benefit from the use of camel casing with respect to accuracy and effort.

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.4
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

No Data Available
No Data Available