Shorter identifier names take longer to comprehend

Developers spend the majority of their time reading 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 clear whether short or long identifier names facilitate comprehension. In this paper, we inves...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Hofmeister, Johannes (VerfasserIn) , Siegmund, Janet (VerfasserIn) , Holt, Daniel (VerfasserIn)
Dokumenttyp: Article (Journal)
Sprache:Englisch
Veröffentlicht: 2019
In: Empirical software engineering
Year: 2018, Jahrgang: 24, Heft: 1, Pages: 417-443
ISSN:1573-7616
DOI:10.1007/s10664-018-9621-x
Online-Zugang:Verlag, Volltext: https://doi.org/10.1007/s10664-018-9621-x
Volltext
Verfasserangaben:Johannes C. Hofmeister, Janet Siegmund, Daniel V. Holt

MARC

LEADER 00000caa a2200000 c 4500
001 1677257008
003 DE-627
005 20220816230332.0
007 cr uuu---uuuuu
008 190918r20192018xx |||||o 00| ||eng c
024 7 |a 10.1007/s10664-018-9621-x  |2 doi 
035 |a (DE-627)1677257008 
035 |a (DE-599)KXP1677257008 
035 |a (OCoLC)1341243630 
040 |a DE-627  |b ger  |c DE-627  |e rda 
041 |a eng 
084 |a 28  |2 sdnb 
100 1 |a Hofmeister, Johannes  |e VerfasserIn  |0 (DE-588)1195083742  |0 (DE-627)1677257695  |4 aut 
245 1 0 |a Shorter identifier names take longer to comprehend  |c Johannes C. Hofmeister, Janet Siegmund, Daniel V. Holt 
264 1 |c 2019 
300 |a 27 
336 |a Text  |b txt  |2 rdacontent 
337 |a Computermedien  |b c  |2 rdamedia 
338 |a Online-Ressource  |b cr  |2 rdacarrier 
500 |a First online: 26 April 2018 
500 |a Gesehen am 18.09.2019 
520 |a Developers spend the majority of their time reading 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 clear whether short or long identifier names facilitate comprehension. In this paper, we investigate the effect of different identifier naming styles (single letters, abbreviations, and words) on program comprehension. We conducted an experimental study with 72 professional C# developers who had to locate defects in source code snippets. We used a within-subjects design, such that each developer worked with all three versions of identifier naming styles, and we measured the time it took them to find a defect. We found that word identifiers led to a 19% increase in speed to find defects compared to meaningless single letters and abbreviations, but we did not find a difference between letters and abbreviations. The results of our study suggest that code is more difficult to comprehend when it contains only letters and abbreviations as identifier names. Words as identifier names facilitate program comprehension and may help to save costs and improve software quality. 
534 |c 2018 
650 4 |a Defect detection 
650 4 |a Identifier names 
650 4 |a Professional C# developers 
650 4 |a Program comprehension 
650 4 |a Psychology 
650 4 |a Software quality 
700 1 |a Siegmund, Janet  |e VerfasserIn  |0 (DE-588)119508434X  |0 (DE-627)1677258306  |4 aut 
700 1 |a Holt, Daniel  |e VerfasserIn  |0 (DE-588)1018036849  |0 (DE-627)690498357  |0 (DE-576)354837109  |4 aut 
773 0 8 |i Enthalten in  |t Empirical software engineering  |d Dordrecht [u.a.] : Springer Science + Business Media B.V, 1996  |g 24(2019), 1, Seite 417-443  |h Online-Ressource  |w (DE-627)271350032  |w (DE-600)1479898-0  |w (DE-576)110350596  |x 1573-7616  |7 nnas  |a Shorter identifier names take longer to comprehend 
773 1 8 |g volume:24  |g year:2019  |g number:1  |g pages:417-443  |g extent:27  |a Shorter identifier names take longer to comprehend 
856 4 0 |u https://doi.org/10.1007/s10664-018-9621-x  |x Verlag  |x Resolving-System  |3 Volltext 
951 |a AR 
992 |a 20190918 
993 |a Article 
994 |a 2019 
998 |g 1018036849  |a Holt, Daniel  |m 1018036849:Holt, Daniel  |d 100000  |d 100200  |e 100000PH1018036849  |e 100200PH1018036849  |k 0/100000/  |k 1/100000/100200/  |p 3  |y j 
998 |g 1195083742  |a Hofmeister, Johannes  |m 1195083742:Hofmeister, Johannes  |d 100000  |d 100200  |e 100000PH1195083742  |e 100200PH1195083742  |k 0/100000/  |k 1/100000/100200/  |p 1  |x j 
999 |a KXP-PPN1677257008  |e 3516483601 
BIB |a Y 
SER |a journal 
JSO |a {"type":{"bibl":"article-journal","media":"Online-Ressource"},"physDesc":[{"extent":"27 S."}],"origin":[{"dateIssuedKey":"2019","dateIssuedDisp":"2019"}],"note":["First online: 26 April 2018","Gesehen am 18.09.2019"],"id":{"eki":["1677257008"],"doi":["10.1007/s10664-018-9621-x"]},"recId":"1677257008","relHost":[{"part":{"pages":"417-443","volume":"24","extent":"27","text":"24(2019), 1, Seite 417-443","issue":"1","year":"2019"},"pubHistory":["1.1996 -"],"type":{"bibl":"periodical","media":"Online-Ressource"},"origin":[{"publisherPlace":"Dordrecht [u.a.] ; Dordrecht [u.a.]","dateIssuedKey":"1996","publisher":"Springer Science + Business Media B.V ; Kluwer","dateIssuedDisp":"1996-"}],"physDesc":[{"extent":"Online-Ressource"}],"recId":"271350032","id":{"issn":["1573-7616"],"eki":["271350032"],"zdb":["1479898-0"]},"note":["Gesehen am 01.11.05"],"title":[{"title":"Empirical software engineering","subtitle":"an international journal","title_sort":"Empirical software engineering"}],"language":["eng"],"disp":"Shorter identifier names take longer to comprehendEmpirical software engineering"}],"person":[{"given":"Johannes","role":"aut","roleDisplay":"VerfasserIn","family":"Hofmeister","display":"Hofmeister, Johannes"},{"given":"Janet","display":"Siegmund, Janet","family":"Siegmund","role":"aut","roleDisplay":"VerfasserIn"},{"roleDisplay":"VerfasserIn","role":"aut","display":"Holt, Daniel","family":"Holt","given":"Daniel"}],"language":["eng"],"name":{"displayForm":["Johannes C. Hofmeister, Janet Siegmund, Daniel V. Holt"]},"title":[{"title_sort":"Shorter identifier names take longer to comprehend","title":"Shorter identifier names take longer to comprehend"}]} 
SRT |a HOFMEISTERSHORTERIDE2019