首页> 外文会议>IEEE/ACM International Conference on Program Comprehension >How Does Feature Dependency Affect Configurable System Comprehensibility?
【24h】

How Does Feature Dependency Affect Configurable System Comprehensibility?

机译:功能依赖性如何影响可配置系统的可理解性?

获取原文

摘要

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 recorded the time each of them had spent to find a bug. Also, we used an eye-tracking device to record developers' gaze movements while they debugged programs. Results: Debugging programs with global and interprocedural dependency required more time and higher visual effort. Conclusion: Our study showed that #ifdefs affect comprehensibility in different degrees depending on the type of feature dependency. Therefore, when possible, developers should take more care when dealing with code with global and interprocedural dependencies.
机译:背景:条件编译通常用于在可配置系统中实现可变性。此技术依靠#ifdefs来分隔功能代码。先前的研究表明,#ifdefs可能会妨碍代码的可理解性。但是,他们没有明确考虑功能依赖性。当不同的功能引用相同的程序元素(例如变量)时,就会发生功能依赖。在存在功能依赖性的情况下,可理解性甚至会受到更大的影响,因为开发人员必须推理出影响相同变量的不同方案。目的:我们的目标是了解功能依赖性如何影响可配置系统源代码的可理解性。方法:我们进行了一个实验,其中30位开发人员调试了具有不同类型功能依赖关系的程序。我们记录了他们每个人发现错误所花费的时间。此外,我们使用眼动追踪设备来记录开发人员调试程序时的凝视动作。结果:调试具有全局和过程间依赖性的程序需要更多的时间和更高的视觉效果。结论:我们的研究表明,#ifdefs取决于特征依赖性的类型在不同程度上影响可理解性。因此,在可能的情况下,开发人员在处理具有全局和过程间依赖性的代码时应格外小心。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号