|
How Does Feature Dependency Affect Configurable System Comprehensibility? |
|
Author : Djan Santos and Cláudio Sant'Anna |
doi=10.1109/ICPC.2019.00016 |
https://ieeexplore.ieee.org/abstract/document/8813293 |
Abstract : |
Background: Conditional compilation is often used to implement variability in configurable systems. This technique relies on #ifdefs to delimit feature code. Previous studies have shown that #ifdefs may hinder code comprehensibility. However, they did not explicitly took feature dependencies into account. Feature dependency occurs when different features refer to the same program element, such as a variable. Comprehensibility may be even more affected in the presence of feature dependency, as the developer must reason about different scenarios affecting the same variable. Aim: Our goal is to understand how feature dependency affects the comprehensibility of configurable system source code. Method: We carried out an experiment in which 30 developers debugged programs with different types of feature dependency. We record the time each of them spent to find a bug. Also, we used an eye-tracking device to record developers' gaze movements while they debugged programs. Results: It took longer for developers to debug programs with global and interprocedural dependency. In addition, debugging programs with these same types of dependencies required higher visual effort. Conclusion: Our study showed that #ifdefs affect comprehensibility in different degrees according with the type of feature dependencies. Therefore, when possible, developers should prefer to use intraprocedural dependency and take more care when dealing with code with global and interprocedural dependency. |
|
|
Procedure:
1 - training on variability, features and configurations;
2 - warm-up task;
3 - presentation about the goal of the experiment and the risk of participation;
4 - sign the consent forms;
5 - calibrate eye-tracking device;
6 - perform the task in order based in Latin square group; |
|
Source codes of our experiment: |
|
Tasks: find the bug in source codes with different Caracteristics: |
with #IFDEF |
without #IFDEF |
GI - Global dependency |
GW - Global dependency equivalent |
IAI - Intraprocedural dependency |
IAW - Intraprocedural ependency equivalent |
IEI - Interprocedural dependency |
IEW - Interprocedural dependency equivalent |
|
|
|