An exploratory study of how developers seek, relate, and collect relevant information during software maintenance tasks

被引:378
作者
Ko, Andrew J. [1 ]
Myers, Brad A. [1 ]
Coblenz, Michael J. [1 ]
Aung, Htet Htet [1 ]
机构
[1] Carnegie Mellon Univ, Sch Comp Sci, Human Comp Interact Inst, Pittsburgh, PA 15213 USA
基金
美国国家科学基金会;
关键词
program investigation; program understanding; program comprehension; empirical software engineering; information foraging; information scent;
D O I
10.1109/TSE.2006.116
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Much of software developers' time is spent understanding unfamiliar code. To better understand how developers gain this understanding and how software development environments might be involved, a study was performed in which developers were given an unfamiliar program and asked to work on two debugging tasks and three enhancement tasks for 70 minutes. The study found that developers interleaved three activities. They began by searching for relevant code both manually and using search tools; however, they based their searches on limited and misrepresentative cues in the code, environment, and executing program, often leading to failed searches. When developers found relevant code, they followed its incoming and outgoing dependencies, often returning to it and navigating its other dependencies; while doing so, however, Eclipse's navigational tools caused significant overhead. Developers collected code and other information that they believed would be necessary to edit, duplicate, or otherwise refer to later by encoding it in the interactive state of Eclipse's package explorer, file tabs, and scroll bars. However, developers lost track of relevant code as these interfaces were used for other tasks, and developers were forced to find it again. These issues caused developers to spend, on average, 35 percent of their time performing the mechanics of navigation within and between source files. These observations suggest a new model of program understanding grounded in theories of information foraging and suggest ideas for tools that help developers seek, relate, and collect information in a more effective and explicit manner.
引用
收藏
页码:971 / 987
页数:17
相关论文
共 51 条