Software developers use Stack Overflow on a daily basis to search for solutions to problems they encounter during bug fixing and feature enhancement. In prior work, studies have been done on mining Stack Overflow data such as for predicting unanswered questions or how and why people post. However, no work exists on how developers actually use, or more importantly, read the information presented to them on Stack Overflow. To better understand this behavior, we conduct an eye tracking study on how developers seek for information on Stack Overflow while tasked with creating human-readable summaries of methods and classes in large Java projects. Eye gaze data is collected on both the source code elements and Stack Overflow document elements at a fine token-level granularity using iTrace, our eye tracking infrastructure. We found that developers look at the text more often than the title in posts. Code snippets were the second most looked at element. Tags and votes are rarely looked at. When switching between Stack Overflow and the Eclipse Integrated Development Environment (IDE), developers often looked at method signatures and then switched to code and text elements on Stack Overflow. Such heuristics provide insight to automated code summarization tools as they decide what to give more weight to while generating summaries.
[1]
Christoph Treude,et al.
How do programmers ask and answer questions on the web?: NIER track
,
2011,
2011 33rd International Conference on Software Engineering (ICSE).
[2]
Alexander Serebrenik,et al.
Recognizing Gender of Stack Overflow Users
,
2016,
2016 IEEE/ACM 13th Working Conference on Mining Software Repositories (MSR).
[3]
Thomas Fritz,et al.
Tracing software developers' eyes and interactions for change tasks
,
2015,
ESEC/SIGSOFT FSE.
[4]
Jonathan I. Maletic,et al.
iTrace: eye tracking infrastructure for development environments
,
2018,
ETRA.
[5]
Robert DeLine,et al.
Information Needs in Collocated Software Development Teams
,
2007,
29th International Conference on Software Engineering (ICSE'07).
[6]
Chris Parnin,et al.
Someone like me: How does peer parity influence participation of women on stack overflow?
,
2017,
2017 IEEE Symposium on Visual Languages and Human-Centric Computing (VL/HCC).
[7]
Nicole Novielli,et al.
How to ask for technical help? Evidence-based guidelines for writing questions on Stack Overflow
,
2017,
Inf. Softw. Technol..