What do developers search for on the web?

  • Xin Xia
  • Lingfeng Bao
  • David Lo
  • Pavneet Singh Kochhar
  • Ahmed E. Hassan
  • Zhenchang Xing
Article

DOI: 10.1007/s10664-017-9514-4

Cite this article as:
Xia, X., Bao, L., Lo, D. et al. Empir Software Eng (2017). doi:10.1007/s10664-017-9514-4

Abstract

Developers commonly make use of a web search engine such as Google to locate online resources to improve their productivity. A better understanding of what developers search for could help us understand their behaviors and the problems that they meet during the software development process. Unfortunately, we have a limited understanding of what developers frequently search for and of the search tasks that they often find challenging. To address this gap, we collected search queries from 60 developers, surveyed 235 software engineers from more than 21 countries across five continents. In particular, we asked our survey participants to rate the frequency and difficulty of 34 search tasks which are grouped along the following seven dimensions: general search, debugging and bug fixing, programming, third party code reuse, tools, database, and testing. We find that searching for explanations for unknown terminologies, explanations for exceptions/error messages (e.g., HTTP 404), reusable code snippets, solutions to common programming bugs, and suitable third-party libraries/services are the most frequent search tasks that developers perform, while searching for solutions to performance bugs, solutions to multi-threading bugs, public datasets to test newly developed algorithms or systems, reusable code snippets, best industrial practices, database optimization solutions, solutions to security bugs, and solutions to software configuration bugs are the most difficult search tasks that developers consider. Our study sheds light as to why practitioners often perform some of these tasks and why they find some of them to be challenging. We also discuss the implications of our findings to future research in several research areas, e.g., code search engines, domain-specific search engines, and automated generation and refinement of search queries.

Keywords

Search task Understanding Empirical study Survey 

Copyright information

© Springer Science+Business Media New York 2017

Authors and Affiliations

  • Xin Xia
    • 1
    • 2
  • Lingfeng Bao
    • 1
  • David Lo
    • 3
  • Pavneet Singh Kochhar
    • 3
  • Ahmed E. Hassan
    • 4
  • Zhenchang Xing
    • 5
  1. 1.College of Computer Science and TechnologyZhejiang UniversityHangzhouChina
  2. 2.Department of Computer ScienceUniversity of British ColumbiaVancouverCanada
  3. 3.School of Information SystemsSingapore Management UniversitySingaporeSingapore
  4. 4.School of ComputingQueen’s UniversityKingstonCanada
  5. 5.Research School of Computer ScienceAustralian National UniversityCanberraAustralia

Personalised recommendations