Variability through the Eyes of the Programmer
Authors:
- Jean MeloJMJean Melo
- Fabricio Batista NarcizoFNFabricio Batista Narcizo
- Dan Witzner HansenDHDan Witzner Hansen
- Claus BrabrandCBClaus Brabrand
- Andrzej WasowskiAWAndrzej Wasowski
- 1 May 2017
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 34-44
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.Keywords
This publication has 28 references indexed in Scilit:
- Projectional editing of variational software2014
- 42 variability bugs in the linux kernel2014
- Feature maintenance with emergent interfaces2014
- Improving automated source code summarization via an eye-tracking study of programmers2014
- Three Cases of Feature-Based Variability Modeling in Industry2014
- Intraprocedural Dataflow Analysis for Software Product Lines2013
- Cognitive architectures2012
- Granularity in software product lines2008
- Studying Cognitive Processes in Computer Program Comprehension2008
- Analyzing individual performance of source code review using reviewers' eye movement2006