Developer Reading Behavior While Summarizing Java']Java Methods: Size and Context Matters

被引:34
作者
Abid, Nahla J. [1 ]
Sharif, Bonita [2 ]
Dragan, Natalia [4 ]
Alrasheed, Hend [3 ]
Maletic, Jonathan I. [4 ]
机构
[1] Taibah Univ, Dept Comp Sci, Madinah, Saudi Arabia
[2] Univ Nebraska Lincoln, Dept Comp Sci & Engn, Lincoln, NE 68588 USA
[3] King Saud Univ, Dept Informat Technol, Riyadh, Saudi Arabia
[4] Kent State Univ, Dept Comp Sci, Kent, OH 44242 USA
来源
2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2019) | 2019年
基金
美国国家科学基金会;
关键词
source code summarization; eye tracking; program comprehension; empirical study; EYE-MOVEMENTS; CODE; INFORMATION;
D O I
10.1109/ICSE.2019.00052
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
An eye-tracking study of 18 developers reading and summarizing Java methods is presented. The developers provide a written summary for methods assigned to them. In total, 63 methods are used from five different systems. Previous studies on this topic use only short methods presented in isolation usually as images. In contrast, this work presents the study in the Eclipse IDE allowing access to all the source code in the system. The developer can navigate via scrolling and switching files while writing the summary. New eye-tracking infrastructure allows for this improvement in the study environment. Data collected includes eye gazes on source code, written summaries, and time to complete each summary. Unlike prior work that concluded developers focus on the signature the most, these results indicate that they tend to focus on the method body more than the signature. Moreover, both experts and novices tend to revisit control flow terms rather than reading them for a long period. They also spend a significant amount of gaze time and have higher gaze visits when they read call terms. Experts tend to revisit the body of the method significantly more frequently than its signature as the size of the method increases. Moreover, experts tend to write their summaries from source code lines that they read the most.
引用
收藏
页码:384 / 395
页数:12
相关论文
共 48 条
[1]  
Abdi H., 2007, The Kendall Rank Correlation Coefficient
[2]   The Evaluation of an Approach for Automatic Generated Documentation [J].
Abid, Nahla ;
Dragan, Natalia ;
Collard, Michael L. ;
Maletic, Jonathan I. .
2017 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2017, :307-317
[3]  
Abid NJ, 2015, PROC IEEE INT CONF S, P561, DOI 10.1109/ICSM.2015.7332514
[4]  
[Anonymous], IEEE INT C SOFTW MAI
[5]   CrowdSummarizer Automated Generation of Code Summaries for Java']Java Programs through Crowdsourcing [J].
Badihi, Sahar ;
Heydarnoori, Abbas .
IEEE SOFTWARE, 2017, 34 (02) :71-80
[6]   Do Developers Read Compiler Error Messages? [J].
Barik, Titus ;
Smith, Justin ;
Lubick, Kevin ;
Holmes, Elisabeth ;
Feng, Jing ;
Murphy-Hill, Emerson ;
Parnin, Chris .
2017 IEEE/ACM 39TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2017, :575-585
[7]  
Bednarik R., 2006, Proceedings. ETRA 2006. Symposium on Eye Tracking Research and Applications, P125, DOI 10.1145/1117309.1117356
[8]   Temporal Eye-Tracking Data: Evolution of Debugging Strategies with Multiple Representations [J].
Bednarik, Roman ;
Tukiainen, Markku .
PROCEEDINGS OF THE EYE TRACKING RESEARCH AND APPLICATIONS SYMPOSIUM (ETRA 2008), 2008, :99-102
[9]  
Begel A., 2018, EMIP 18, V'18
[10]   Eye Movements in Code Reading: Relaxing the Linear Order [J].
Busjahn, Teresa ;
Bednarik, Roman ;
Begel, Andrew ;
Crosby, Martha ;
Paterson, James H. ;
Schulte, Carsten ;
Sharif, Bonita ;
Tamm, Sascha .
2015 IEEE 23RD INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION ICPC 2015, 2015, :255-265