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

03/08/2019
by   Nahla J. Abid, et al.
0

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.

READ FULL TEXT
research
12/14/2018

Supporting software documentation with source code summarization

Source code summarization is a process of generating summaries that desc...
research
08/26/2021

Retrieval Augmented Code Generation and Summarization

Software developers write a lot of source code and documentation during ...
research
06/19/2021

gazel: Supporting Source Code Edits in Eye-Tracking Studies

Eye tracking tools are used in software engineering research to study va...
research
07/16/2019

A Novel Slip-Kalman Filter to Track the Progression of Reading Through Eye-Gaze Measurements

In this paper, we propose an approach to track the progression of eye-ga...
research
05/07/2019

Tracking the Progression of Reading Through Eye-gaze Measurements

In this paper we consider the problem of tracking the progression of rea...
research
03/13/2023

Correlates of Programmer Efficacy and Their Link to Experience: A Combined EEG and Eye-Tracking Study

Background: Despite similar education and background, programmers can ex...
research
08/31/2022

How Readable is Model-generated Code? Examining Readability and Visual Inspection of GitHub Copilot

Background: Recent advancements in large language models have motivated ...

Please sign up or login with your details

Forgot password? Click here to reset