Variability through the Eyes of the Programmer
- Jean Melo,
- Fabricio Batista Narcizo,
- ,
- ,
Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-reviewOpen access
Publication Information
Output type
Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-reviewOriginal language
EnglishPages from-to (Number of pages)
Pages 34-44 (11 pages)Publication milestones
- Published - 01/05/2017
Publication status
Published - 01/05/2017
Publisher
IEEE, United StatesISBN (Electronic)
978-1-5386-0535-6Publication IDs
- Scopus: 85025177144
Host publication title
2017 IEEE/ACM 25th International Conference on Program Comprehension (ICPC)Abstract
Preprocessor directives (#ifdefs) are often used to implement compile-time variability, despite the critique that they increase complexity, hamper maintainability, and impair code comprehensibility. Previous studies have shown that the time of bug finding increases linearly with variability. However, little is known about the cognitive process of debugging programs with variability. We carry out an experiment to understand how developers debug programs with variability. We ask developers to debug programs with and without variability, while recording their eye movements using an eye tracker. The results indicate that debugging time increases for code fragments containing variability. Interestingly, debugging time also seems to increase for code fragments without variability in the proximity of fragments that do contain variability. The presence of variability correlates with increase in the number of gaze transitions between definitions and usages for fields and methods. Variability also appears to prolong the "initial scan" of the entire program that most developers initiate debugging with.
Publication metrics
PlumX, opens in new tab
Citations
27
Captures
47
Access to documents
Accepted author manuscript, 1.39 MB
Related Event
Title
International Conference on Program Comprehension
Event type
ConferenceDegree of recognition
International eventDate
22/05/2017 - 23/05/2017Location
Buenos AiresArgentina
