Readability and Understandability of Snippets Recommended by General-purpose Web Search Engines: a Comparative Study
Dantas, Maia
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
개발자들은 Google, Yahoo!, Microsoft Bing 등의 일반 검색 엔진에서 재사용 가능한 코드 스니펫을 자주 검색합니다. 그러나 이러한 코드 스니펫은 가독성이나 이해도 측면에서 품질이 낮을 수 있습니다. 본 논문은 세 가지 독립 변수(순위, 일반 검색 엔진, 추천 웹사이트)를 사용하여 웹에서 추출한 코드 스니펫의 가독성 및 이해도 점수를 분석하는 실증 분석을 제시합니다. 연구는 9,480개 쿼리에 대한 Google, Yahoo!, Bing의 상위 5개 추천 웹사이트 및 해당 코드 스니펫 추천을 수집하고 가독성 및 이해도 점수를 평가했습니다. 연구 결과, 특정 추천 웹사이트가 가독성 및 이해도 점수 측면에서 다른 웹사이트보다 현저히 우수함을 발견했습니다. 순위가 높은 코드 스니펫이 모든 일반 검색 엔진에서 순위가 낮은 코드 스니펫보다 반드시 더 가독성이 높거나 이해하기 쉬운 것은 아닙니다. 또한 가독성 점수 측면에서 Google은 Yahoo! 또는 Microsoft Bing보다 더 나은 코드 스니펫 순위를 제공합니다.
논문은 Hora의 연구 사례를 인용했습니다: Google에서 "File.mkdirs examples"를 검색할 때, Tutorialspoint의 코드 스니펫은 가독성 및 재사용성 지표가 낮음에도 불구하고 쿼리와 유사한 자연어 설명을 포함하고 있어 더 높은 순위를 차지합니다.
종합 평가: 이는 높은 품질의 실증 소프트웨어 공학 연구 논문으로, 코드 검색 품질 평가 연구의 공백을 채우며 중요한 이론적 가치와 실무적 의의를 가집니다. 연구 방법은 과학적이고 엄밀하며, 데이터 규모는 충분하고, 결론의 신뢰도는 높으며, 개발자와 연구자에게 가치 있는 통찰력을 제공합니다.