paperbot · PL 论文追踪

全部论文 待读 收藏

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

开发者在总结 Java 方法时的阅读行为:规模与上下文很重要
ICSE 2019 IEEE/ACM 41st International Conference on Software Engineering (ICSE)2019匹配度 1/10 · 该论文通过眼动实验研究开发者阅读与总结 Java 方法的行为,属于程序理解与人因/开发者工具方向,与用户关注的静态分析、Agentic 程序、LLM 与形式化验证/浮点程序分析/贝叶斯程序分析均无直接关系。引用 62 inbox
Nahla J. Abid, Bonita Sharif, Natalia Dragan, Hend Alrasheed, Jonathan I. Maletic
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:通过眼动实验揭示开发者在 Eclipse 中总结 Java 方法时更关注方法体,且方法规模与上下文影响阅读与总结策略。

论文研究开发者在真实 IDE 上下文中阅读并总结 Java 方法时的行为,弥补以往仅用孤立短方法图像的研究局限。作者开展眼动追踪实验,18 名开发者(含专家与新手)在 Eclipse 中可滚动、切换文件并访问全部源码,对来自 5 个系统的 63 个方法撰写摘要,同时记录注视、摘要文本和完成时间。结果表明开发者更关注方法体而非签名;控制流词项常被回看而非长时间注视,调用词项获得更多注视时间和访问次数。随着方法规模增大,专家更频繁回看方法体;专家倾向于根据注视最多的源码行撰写摘要。

问题
以往对方法摘要阅读的研究多使用孤立短方法图像,忽略真实 IDE 中可导航、可访问上下文的编程环境。
方法
对 18 名开发者进行眼动追踪,在 Eclipse 中阅读和总结来自 5 个系统的 63 个 Java 方法,并收集注视、摘要与完成时间数据。
评估
通过分析注视时间、回看次数等指标,比较专家与新手、签名与方法体、方法规模以及控制流/调用词项对阅读与总结行为的影响。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{abs-1903-03358,
  title = {Developer Reading Behavior While Summarizing Java Methods: Size and Context Matters},
  author = {Nahla J. Abid and Bonita Sharif and Natalia Dragan and Hend Alrasheed and Jonathan I. Maletic},
  booktitle = {ICSE},
  year = {2019},
  doi = {10.1109/icse.2019.00052}
}