Are Comments on Stack Overflow Well Organized for Easy Retrieval by Developers?

Author:

Zhang Haoxiang1,Wang Shaowei2,Chen Tse-Hsun (Peter)3,Hassan Ahmed E.4

Affiliation:

1. Centre for Software Excellence, Huawei, Canada

2. Department of Computer Science, University of Manitoba, Winnipeg, Manitoba, Canada

3. Software PErformance, Analysis, and Reliability (SPEAR) Lab, Concordia University, Montreal, Quebec, Canada

4. Software Analysis and Intelligence Lab (SAIL), Queen’s University, Kingston, Ontario, Canada

Abstract

Many Stack Overflow answers have associated informative comments that can strengthen them and assist developers. A prior study found that comments can provide additional information to point out issues in their associated answer, such as the obsolescence of an answer. By showing more informative comments (e.g., the ones with higher scores) and hiding less informative ones, developers can more effectively retrieve information from the comments that are associated with an answer. Currently, Stack Overflow prioritizes the display of comments, and, as a result, 4.4 million comments (possibly including informative comments) are hidden by default from developers. In this study, we investigate whether this mechanism effectively organizes informative comments. We find that (1) the current comment organization mechanism does not work well due to the large amount of tie-scored comments (e.g., 87% of the comments have 0-score) and (2) in 97.3% of answers with hidden comments, at least one comment that is possibly informative is hidden while another comment with the same score is shown (i.e., unfairly hidden comments). The longest unfairly hidden comment is more likely to be informative than the shortest one. Our findings highlight that Stack Overflow should consider adjusting the comment organization mechanism to help developers effectively retrieve informative comments. Furthermore, we build a classifier that can effectively distinguish informative comments from uninformative comments. We also evaluate two alternative comment organization mechanisms (i.e., the Length mechanism and the Random mechanism) based on text similarity and the prediction of our classifier.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Cited by 13 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Studying and recommending information highlighting in Stack Overflow answers;Information and Software Technology;2024-08

2. Developers’ information seeking in Question & Answer websites through a gender lens;Journal of Computer Languages;2024-06

3. Understanding Solidity Event Logging Practices in the Wild;Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering;2023-11-30

4. Characterizing architecture related posts and their usefulness in Stack Overflow;Journal of Systems and Software;2023-04

5. A study of update request comments in Stack Overflow answer posts;Journal of Systems and Software;2023-04

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3