Saved in:
Bibliographic Details
Main Authors: Dantas, Carlos Eduardo C., Maia, Marcelo A.
Format: Preprint
Published: 2021
Subjects:
Online Access:https://arxiv.org/abs/2110.07087
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914087984693248
author Dantas, Carlos Eduardo C.
Maia, Marcelo A.
author_facet Dantas, Carlos Eduardo C.
Maia, Marcelo A.
contents Developers often search for reusable code snippets on general-purpose web search engines like Google, Yahoo! or Microsoft Bing. But some of these code snippets may have poor quality in terms of readability or understandability. In this paper, we propose an empirical analysis to analyze the readability and understandability score from snippets extracted from the web using three independent variables: ranking, general-purpose web search engine, and recommended site. We collected the top-5 recommended sites and their respective code snippet recommendations using Google, Yahoo!, and Bing for 9,480 queries, and evaluate their readability and understandability scores. We found that some recommended sites have significantly better readability and understandability scores than others. The better-ranked code snippet is not necessarily more readable or understandable than a lower-ranked code snippet for all general-purpose web search engines. Moreover, considering the readability score, Google has better-ranked code snippets compared to Yahoo! or Microsoft Bing
format Preprint
id arxiv_https___arxiv_org_abs_2110_07087
institution arXiv
publishDate 2021
record_format arxiv
spellingShingle Readability and Understandability of Snippets Recommended by General-purpose Web Search Engines: a Comparative Study
Dantas, Carlos Eduardo C.
Maia, Marcelo A.
Software Engineering
Developers often search for reusable code snippets on general-purpose web search engines like Google, Yahoo! or Microsoft Bing. But some of these code snippets may have poor quality in terms of readability or understandability. In this paper, we propose an empirical analysis to analyze the readability and understandability score from snippets extracted from the web using three independent variables: ranking, general-purpose web search engine, and recommended site. We collected the top-5 recommended sites and their respective code snippet recommendations using Google, Yahoo!, and Bing for 9,480 queries, and evaluate their readability and understandability scores. We found that some recommended sites have significantly better readability and understandability scores than others. The better-ranked code snippet is not necessarily more readable or understandable than a lower-ranked code snippet for all general-purpose web search engines. Moreover, considering the readability score, Google has better-ranked code snippets compared to Yahoo! or Microsoft Bing
title Readability and Understandability of Snippets Recommended by General-purpose Web Search Engines: a Comparative Study
topic Software Engineering
url https://arxiv.org/abs/2110.07087