# Does the hiding mechanism for Stack Overflow comments work well? No!

**Authors:** Haoxiang Zhang, Shaowei Wang, Tse-Hsun Peter Chen, Ahmed E. Hassan

arXiv: 1904.00946 · 2019-04-02

## TL;DR

This study evaluates Stack Overflow's comment hiding mechanism, revealing it often hides equally informative comments based on timing rather than relevance, and suggests improvements for better information dissemination.

## Contribution

The paper provides an empirical analysis of the current comment hiding mechanism, highlighting its shortcomings and proposing potential adjustments to improve comment visibility.

## Key findings

- Hidden comments are as informative as displayed ones.
- Most comments are ranked and hidden based on creation time due to tie scores.
- Unfairly hidden comments are often more informative than displayed comments.

## Abstract

Stack Overflow has accumulated millions of answers. Informative comments can strengthen their associated answers (e.g., providing additional information). Currently, Stack Overflow hides comments that are ranked beyond the top 5. Stack Overflow aims to display more informative comments (i.e., the ones with higher scores) and hide less informative ones using this mechanism. As a result, 4.4 million comments are hidden under their answer threads. Therefore, it is very important to understand how well the current comment hiding mechanism works. In this study, we investigate whether the mechanism can effectively deliver informative comments while hiding uninformative comments. We find that: 1) Hidden comments are as informative as displayed comments; more than half of the comments (both hidden and displayed) are informative (e.g., providing alternative answers, or pointing out flaws in their associated answers). 2) The current comment hiding mechanism tends to rank and hide comments based on their creation time instead of their score in most cases due to the large amount of tie-scored comments (e.g., 87% of the comments have 0-score). 3) In 97.3% of answers that have hidden comments, at least one comment is hidden while there is another comment with the same score is displayed (i.e., we refer to such cases as unfairly hidden comments). Among such unfairly hidden comments, the longest unfairly hidden comment is more likely to be informative than the shortest unfairly displayed comments. Our findings suggest that Stack Overflow should consider adjusting their current comment hiding mechanism, e.g., displaying longer unfairly hidden comments to replace shorter unfairly displayed comments. We also recommend that users examine all comments, in case they would miss informative details such as software obsolescence, code error reports, or notices of security vulnerability in hidden comments.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1904.00946/full.md

## Figures

12 figures with captions in the complete paper: https://tomesphere.com/paper/1904.00946/full.md

## References

35 references — full list in the complete paper: https://tomesphere.com/paper/1904.00946/full.md

---
Source: https://tomesphere.com/paper/1904.00946