How developers search for code: a case study
Open accessThe DOI matches its Crossref record; 5 of the 5 references it cites were found in a registry or an index.
Abstract
With the advent of large code repositories and sophisticated search capabilities, code search is increasingly becoming a key software development activity. In this work we shed some light into how developers search for code through a case study performed at Google, using a combination of survey and log-analysis methodologies. Our study provides insights into what developers are doing and trying to learn when per- forming a search, search scope, query properties, and what a search session under different contexts usually entails. Our results indicate that programmers search for code very frequently, conducting an average of five search sessions with 12 total queries each workday. The search queries are often targeted at a particular code location and programmers are typically looking for code with which they are somewhat familiar. Further, programmers are generally seeking answers to questions about how to use an API, what code does, why something is failing, or where code is located.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Ko, A. J., Myers, B. A., Coblenz, M. J., & Aung, H. H. (2006) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2006.116 · Cited by 685 · cited 4×
“In some cases, the goal was not to observe code search directly, but rather code search was observed as part of information seeking activities performed by developers [3,12, 15].”
BackgroundMethodInfluential(2009) · doi:10.1145/1518701.1518944 · Cited by 447
Example-centric programming: integrating web search into the development environment
Brandt, J., Dontcheva, M., Weskamp, M., & Klemmer, S. R. (2010) · Proceedings of the SIGCHI Conference on Human Factors in Computing Systems · doi:10.1145/1753326.1753402 · Cited by 324 · cited 2×
“In these search studies, participants come from companies [2,15], student populations [12,17,28,31], or crowd-sourcing platforms such as Amazon’s Mechanical Turk [31] or online newsgroups [27].”
BackgroundWhat help do developers seek, when and how?
Li, H., Xing, Z., Peng, X., & Zhao, W. (2013) · 2013 20th Working Conference on Reverse Engineering (WCRE) · doi:10.1109/wcre.2013.6671289 · Cited by 81
Using information scent to model the dynamic foraging behavior of programmers in maintenance tasks
Lawrance, J., Bellamy, R., Burnett, M., & Rector, K. (2008) · Proceedings of the SIGCHI Conference on Human Factors in Computing Systems · doi:10.1145/1357054.1357261 · Cited by 76 · cited 4×
“In some cases, the goal was not to observe code search directly, but rather code search was observed as part of information seeking activities performed by developers [3,12, 15].”
BackgroundInfluential
Research works printed but not linked: 22
- 10.1145/1176617.1176671 · DOI · Paper page
- Google Code Search for Chromium . http://cs.chromium.org/ , March 2014 . Google Code Search for Chromium. http://cs.chromium.org/, March 2014.
- CodePlex. https://www.codeplex.com/ , March 2014 . CodePlex. https://www.codeplex.com/, March 2014.
- Google Code . https://code.google.com/ , March 2014 . Google Code. https://code.google.com/, March 2014.
- 10.1145/1810295.1810347 · DOI
- 10.1145/1294211.1294216 · DOI · Paper page
- W. Hudson . Card sorting . In M. Soegaard and R. Dam, editors, Encyclopedia of Human-Computer Interaction , 2 nd Edition. The Interaction Design Foundation , 2013 . W. Hudson. Card sorting. In M. Soegaard and R. Dam, editors, Encyclopedia of Human-Computer Interaction, 2nd Edition. The Interaction Design Foundation, 2013.
- Krugle. http://opensearch.krugle.org/projects/ , March 2014 . Krugle. http://opensearch.krugle.org/projects/, March 2014.
- 10.1145/1321631.1321726 · DOI
- 10.1007/s10618-008-0118-x · DOI · Paper page
- 10.5555/1038267.1039053 · doi:10.5555/1038267.1039053
- 10.1109/TSE.2011.84 · DOI · Paper page
- Merobase. http://www.merobase.com , September 2013 . Merobase. http://www.merobase.com, September 2013.
- Ohloh Code Search . http://code.ohloh.net/ , September 2012 . Ohloh Code Search. http://code.ohloh.net/, September 2012.
- 10.1109/ICSE.2009.5070525 · DOI · Paper page
- 10.5555/2818754.2818828 · doi:10.5555/2818754.2818828
- Searchcode. searchcode , March 2014 . Searchcode. searchcode, March 2014.
- S. Sim , M. Agarwala , and M. Umarji . A controlled experiment on the process used by developers during internet-scale code search . In S. E. Sim and R. E. Gallardo-Valencia, editors, Finding Source Code on the Web for Remix and Reuse , pages 53– 77 . Springer New York, 2013. S. Sim, M. Agarwala, and M. Umarji. A controlled experiment on the process used by developers during internet-scale code search. In S. E. Sim and R. E. Gallardo-Valencia, editors, Finding Source Code on the Web for Remix and Reuse, pages 53–77. Springer New York, 2013.
- 10.5555/580914.858229 · doi:10.5555/580914.858229
- 10.1145/2063239.2063243 · DOI · Paper page
- J. Singer , T. Lethbridge , N. Vinson , and N. Anquetil . An examination of software engineering work practices . In Proceedings of the 1997 Conference of the Centre for Advanced Studies on Collaborative Research, CASCON ’97 , pages 21–. IBM Press, 1997 . J. Singer, T. Lethbridge, N. Vinson, and N. Anquetil. An examination of software engineering work practices. In Proceedings of the 1997 Conference of the Centre for Advanced Studies on Collaborative Research, CASCON ’97, pages 21–. IBM Press, 1997.
- 10.1145/2581377 · DOI · Paper page
Cited by
What do developers search for on the web?
Xia, X., Bao, L., Lo, D., Kochhar, P. S., Hassan, A. E., & Xing, Z. (2017) · Empirical Software Engineering · doi:10.1007/s10664-017-9514-4 · Cited by 174
In-IDE Code Generation from Natural Language: Promise and Challenges
Xu, F. F., Vasilescu, B., & Neubig, G. (2022) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3487569 · Cited by 154
“Practically, however, many developers simply rely on generic natural-language search engines like Google to find appropriate code snippets by first locating pages that contain code snippets through natural language queries [101] on programming QA websites like Stack Overflow.”
BackgroundIn-IDE Code Generation from Natural Language: Promise and Challenges
Xu, F. F., Vasilescu, B., & Neubig, G. (2021) · arXiv · doi:10.48550/arxiv.2101.11149 · Cited by 153
Retrieval Augmented Code Generation and Summarization
Parvez, M. R., Ahmad, W., Chakraborty, S., Ray, B., & Chang, K.-W. (2021) · Findings of the Association for Computational Linguistics: EMNLP 2021 · doi:10.18653/v1/2021.findings-emnlp.232 · Cited by 141
A Survey of Machine Learning for Big Code and Naturalness
Allamanis, M., Barr, E. T., Devanbu, P., & Sutton, C. (2019) · ACM Computing Surveys · doi:10.1145/3212695 · Cited by 150
Metadata
- Authors
- Sadowski, C., Stolee, K. T., & Elbaum, S.
- Venue
- Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering
- Publisher
- ACM
- Published
- 2015-08-30
- Pages
- 191-201
- OpenAlex
- W2006291142
- Cited by
- 238
- References
- 5
- FWCI
- 10.82
- Type
- conference paper
- Language
- en
- Open access
- bronze
- Funders
- SHF- EAGER (1446932)
- NSF SHF (1218265)
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.