How Developers Read and Use Source Code When Summarizing APIs

The study investigates how developers use source code to generate API summaries. Eyetracking data is analyzed from 30 participants performing summarization tasks. The source code (no comments) was their only information source. Participants’ summaries were evaluated for correctness and visual attention was mapped to specific code elements in the Eclipse IDE. Results show that developers who correctly summarized code spent significantly less time (half, on average) on the task. More experienced developers generally took longer, though not always resulting in a correct summary. Semantic similarity tools were used to assess whether correct participant summaries better reflected what they read, with Sentence-BERT showing moderate alignment but no statistically significant differences overall. These findings suggest that summarization accuracy is influenced more by reading strategy than experience and that current similarity models struggle to fully capture human summarization behavior. This work informs future improvements in developer tools and automated summarization systems.

Publication Details

Journal
Insecta mundi
Published
2025-05-01
Primary Topic
Geochemistry and Geologic Mapping
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

How Developers Read and Use Source Code When Summarizing APIs

Insecta mundi
Geochemistry and Geologic Mapping
article

How Developers Read and Use Source Code When Summarizing APIs

article en

Abstract

The study investigates how developers use source code to generate API summaries. Eyetracking data is analyzed from 30 participants performing summarization tasks. The source code (no comments) was their only information source. Participants’ summaries were evaluated for correctness and visual attention was mapped to specific code elements in the Eclipse IDE. Results show that developers who correctly summarized code spent significantly less time (half, on average) on the task. More experienced developers generally took longer, though not always resulting in a correct summary. Semantic similarity tools were used to assess whether correct participant summaries better reflected what they read, with Sentence-BERT showing moderate alignment but no statistically significant differences overall. These findings suggest that summarization accuracy is influenced more by reading strategy than experience and that current similarity models struggle to fully capture human summarization behavior. This work informs future improvements in developer tools and automated summarization systems.

Insecta mundi
Quality Education
Openalex Percentile: Top 64%
Geochemistry and Geologic Mapping
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.