Descriptive Compound Identifier Names Improve Source Code ComprehensionTechnical Research
Reading and understanding source code is a major task in soft- ware development. Code comprehension depends on the quality of code, which is impacted by code structure and identifier nam- ing. In this paper we empirically investigated whether longer but more descriptive identifier names improve code comprehension compared to short names, as they represent useful information in more detail. In a web-based study 88 Java developers were asked to locate a semantic defect in source code snippets. With descrip- tive identifier names, developers spent more time in the lines of code before the actual defect occurred and changed their reading direction less often, finding the semantic defect about 14% faster than with shorter but less descriptive identifier names. These ef- fects disappeared when developers searched for a syntax error, i.e., when no in-depth understanding of the code was required. Interest- ingly, the style of identifier names had a clear impact on program comprehension for more experienced developers but not for less experienced developers.
Sun 27 MayDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
09:00 - 10:30 | Opening, Vision Keynote, and Developer ObservationTechnical Research at J1 room Chair(s): Foutse Khomh Polytechnique Montréal, Chanchal K. Roy University of Saskatchewan, Katsuro Inoue Osaka University | ||
09:00 10mDay opening | Welcome to ICPC 2018 Technical Research | ||
09:11 34mTalk | Sensing and Supporting Software Developer's Focus (Vision Keynote)Vision Keynote Technical Research Manuela Zueger University of Zurich, Thomas Fritz University of Zurich, University of British Columbia | ||
09:45 10mShort-paper | Code Phonology: an exploration into the vocalization of codeERA Technical Research Felienne Hermans , Alaaeddin Swidan Delft University of Technology, Efthimia Aivaloglou Open University of the Netherlands | ||
09:55 17mFull-paper | Meaningful Variable Names for Decompiled Code: A Machine Translation ApproachTechnical Research Technical Research Alan Jaffe Carnegie Mellon University, Jeremy Lacomis Carnegie Mellon University, Edward Schwartz Carnegie Mellon University, Claire Le Goues Carnegie Mellon University, Bogdan Vasilescu Carnegie Mellon University Pre-print Media Attached | ||
10:13 17mFull-paper | Descriptive Compound Identifier Names Improve Source Code ComprehensionTechnical Research Technical Research Andrea Schankin Karlsruhe Institute of Technology, Annika Berger Karlsruhe Institute of Technology, Daniel Holt Heidelberg University, Johannes Hofmeister University of Passau, Till Riedel Karlsruhe Institute of Technology, Michael Beigl Karlsruhe Institute of Technology Pre-print |