What do developers search for in source code and why

  • Authors:
  • Oleksandr Panchenko;Hasso Plattner;Alexander Zeier

  • Affiliations:
  • Hasso Plattner Institute for Software Systems Engineering, Potsdam, Germany;Hasso Plattner Institute for Software Systems Engineering, Potsdam, Germany;Hasso Plattner Institute for Software Systems Engineering, Potsdam, Germany

  • Venue:
  • Proceedings of the 3rd International Workshop on Search-Driven Development: Users, Infrastructure, Tools, and Evaluation
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

Source code search is an important tool used by software engineers. However, until now relatively little is known about what developers search for in source code and why. This paper addresses this knowledge gap. We present the results of a log file analysis of a source code search engine. The data from the log file was analyzed together with the change history of four development and maintenance systems. The results show that most of the search targets were not changed after being downloaded, thus we concluded that the developers conducted searches to find reusable components, to obtain coding examples or to perform impact analysis. In contrast, maintainers often change the code they have downloaded. Moreover, we automatically categorized the search queries. The most popular categories were: method name, structural pattern, and keyword. The major search target was a statement. Although the selected data set was small, the deviations between the systems were negligible, therefore we conclude that our results are valid.