Eye Movements in Code Reading: Relaxing the Linear Order

被引:154
作者
Busjahn, Teresa [1 ]
Bednarik, Roman [2 ]
Begel, Andrew [3 ]
Crosby, Martha [4 ]
Paterson, James H. [5 ]
Schulte, Carsten [1 ]
Sharif, Bonita [6 ]
Tamm, Sascha [7 ]
机构
[1] Free Univ Berlin, Inst Comp Sci, Berlin, Germany
[2] Univ Eastern Finland, Sch Comp, Joensuu, Finland
[3] Microsoft Res, Redmond, WA USA
[4] Univ Hawaii Manoa, Informat & Comp Sci, Honolulu, HI 96822 USA
[5] Glasgow Caledonian Univ, Dept Comp Commun & Interact Syst, Glasgow G4 0BA, Lanark, Scotland
[6] Youngstown State Univ, Comp Sci & Informat Syst, Youngstown, OH USA
[7] Free Univ Berlin, Ctr Appl Neurosci, Berlin, Germany
来源
2015 IEEE 23RD INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION ICPC 2015 | 2015年
关键词
D O I
10.1109/ICPC.2015.36
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Code reading is an important skill in programming. Inspired by the linearity that people exhibit while natural language text reading, we designed local and global gaze-based measures to characterize linearity (left-to-right and top-to-bottom) in reading source code. Unlike natural language text, source code is executable and requires a specific reading approach. To validate these measures, we compared the eye movements of novice and expert programmers who were asked to read and comprehend short snippets of natural language text and Java programs. Our results show that novices read source code less linearly than natural language text. Moreover, experts read code less linearly than novices. These findings indicate that there are specific differences between reading natural language and source code, and suggest that non-linear reading skills increase with expertise. We discuss the implications for practitioners and educators.
引用
收藏
页码:255 / 265
页数:11
相关论文
共 31 条
[21]   Improving Automated Source Code Summarization via an Eye-Tracking Study of Programmers [J].
Rodeghero, Paige ;
McMillan, Collin ;
McBurney, Paul W. ;
Bosch, Nigel ;
D'Mello, Sidney .
36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2014), 2014, :390-401
[22]  
Schulte Carsten, 2010, P 2010 ITICSE WORK G, P65, DOI [10.1145/1971681.1971687, DOI 10.1145/1971681.1971687]
[23]  
Schulte Carsten, 2008, P 4 INT WORKSH COMP, P149, DOI DOI 10.1145/1404520.1404535
[24]  
Sharif B., 2012, P S EYE TRACK RES AP, P381
[25]   Understanding Understanding Source Code with Functional Magnetic Resonance Imaging [J].
Siegmund, Janet ;
Kaestner, Christian ;
Apel, Sven ;
Parnin, Chris ;
Bethmann, Anja ;
Leich, Thomas ;
Saake, Gunter ;
Brechmann, Andre .
36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2014), 2014, :378-389
[26]  
Simon, 2015, EYE MOVEMENTS PROGRA, P31
[27]   DESIGNING DOCUMENTATION TO COMPENSATE FOR DELOCALIZED PLANS [J].
SOLOWAY, E ;
PINTO, J ;
LETOVSKY, S ;
LITTMAN, D ;
LAMPERT, R .
COMMUNICATIONS OF THE ACM, 1988, 31 (11) :1259-1267
[28]   Notional Machines and Introductory Programming Education [J].
Sorva, Juha .
ACM TRANSACTIONS ON COMPUTING EDUCATION, 2013, 13 (02)
[29]  
Turner R., 2014, P S EYE TRACK RES AP, P231
[30]  
Uwano H., 2005, Eye Tracking Research and Applications Symposium (ETRA), V2005, P133