Skip to content

Commit af942cc

Browse files
author
Johannes Hofmeister
committed
Added preprint
1 parent dec50c1 commit af942cc

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ <h1>Brains On Code</h1>
1717
<h2>Papers</h2>
1818

1919
<h3>Shorter Identifier Names Take Longer To Comprehend (SANER 17)</h3>
20+
21+
<h4>Preprint</h4>
22+
<a href="shorter-identifier-names.pdf">Preprint - Shorter Identifier Names Take Longer To Comprehend, PDF, 327kb</a>
23+
2024
<h4>Abstract</h4>
2125
<p>
2226
Developers spend the majority of their time comprehending code, a process in which identifier names play a key role. Although many identifier naming styles exist, they often lack an empirical basis and it is not quite clear whether short or long identifier names facilitate comprehension. In this paper, we investigate the effect of different identifier naming styles (letters, abbreviations, words) on program comprehension, and whether these effects arise because of their length or their semantics. We conducted an experimental study with 72 professional C# developers, who looked for defects in source-code snippets. We used a within-subjects design, such that each developer saw all three versions of identifier naming styles and we measured the time it took them to find a defect. We found that words lead to, on average, 19% faster comprehension speed compared to letters and abbreviations, but we did not find a significant difference in speed between letters and abbreviations. The results of our study suggest that defects in code are more difficult to detect when code contains only letters and abbreviations. Words as identifier names facilitate program comprehension and can help to save costs and improve software quality.

shorter-identifier-names.pdf

326 KB
Binary file not shown.

0 commit comments

Comments
 (0)