Podrobná bibliografie
| Název: |
A Tale of Two Comprehensions? Analyzing Student Programmer Attention during Code Summarization. |
| Autoři: |
Karas, Zachary, Bansal, Aakash, Zhang, Yifan, Li, Toby, McMillan, Collin, Huang, Yu |
| Zdroj: |
ACM Transactions on Software Engineering & Methodology; Sep2024, Vol. 33 Issue 7, p1-37, 37p |
| Témata: |
COMPUTER science education, SCIENTIFIC literacy, READING comprehension, SOURCE code, COGNITIVE science, EYE tracking |
| Abstrakt: |
Code summarization is the task of creating short, natural language descriptions of source code. It is an important part of code comprehension and a powerful method of documentation. Previous work has made progress in identifying where programmers focus in code as they write their own summaries (i.e., Writing). However, there is currently a gap in studying programmers' attention as they read code with pre-written summaries (i.e., Reading). As a result, it is currently unknown how these two forms of code comprehension compare: Reading and Writing. Also, there is a limited understanding of programmer attention with respect to program semantics. We address these shortcomings with a human eye-tracking study (n = 27) comparing Reading and Writing. We examined programmers' attention with respect to fine-grained program semantics, including their attention sequences (i.e., scan paths). We find distinctions in programmer attention across the comprehension tasks, similarities in reading patterns between them, and differences mediated by demographic factors. This can help guide code comprehension in both computer science education and automated code summarization. Furthermore, we mapped programmers' gaze data onto the Abstract Syntax Tree to explore another representation of human attention. We find that visual behavior on this structure is not always consistent with that on source code. [ABSTRACT FROM AUTHOR] |
|
Copyright of ACM Transactions on Software Engineering & Methodology is the property of Association for Computing Machinery and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.) |
| Databáze: |
Complementary Index |