Background
Lately, I've been spending a fair amount of time doing comment analysis and have been looking through a few thousand comments a day.
We have quite a few broad categories of comments that come into Stack Overflow. Naturally, plenty of these comments do not need to be kept on our site for any amount of time. Some of them detract (or obscure) otherwise useful information.
It's well established that Comments are temporary "Post-It" notes left on a question or answer and that they should be used to communicate minor or transient information and [y]ou should not expect them to be around forever.
Having said this, we know that this is not always how they're used and there are frequently very useful additions to questions and answers that live in the comments.
When flagging comments as no longer needed the help center (and the flag text) sets the following guide:
no longer needed - the comment is obsolete, chatty, or otherwise unnecessary
We have a fairly well established policy of removing "thanks" and "you're welcome" type comments, so much so that there are certain heuristics that make [these] types of comments a bit, shall we say, easier to flag away.
Situation
There's a subset of these "thank you" and "worked for me" comments which contain a tiny nugget of additional information which may be useful. These comments are the "thanks this works for me in [related or unrelated technology]"
A few real life examples:
"Works in [similar technology]"
"Works on [browser]"/ "Works in [version]" / "Works in [year]"
- Works on: IDEA 2020.3.4 + eslint 8.19.0
- Thanks @Aubricus, that worked for me on python 2.7 :-)
- still working on 2022 :) saved my day too.
- Works as of 2018!
- still working in january 2021, swagger 3.38.0
- save the life.Works fine with chrome and firefox
- Just for completion: 0.01px works in latest Chrome 102 and Firefox 102 on macOS.
Question
My question is: are there ever situations where these are useful and should be kept? and if so:
- under what circumstances should these comments be kept?
- what value does keeping them offer?
if not:
- why are these comments "otherwise unnecessary"?
- is it worth preserving the information in another way like putting it in the question or answer?
Note: I am aware there is nuance here and also that some of these are easier to handle than others Works as of 2018! is clearly obsolete. However, many of these are neither "obsolete" nor "chatty," so if they should be removed they need to fall in the "otherwise unnecessary" category, which I hope to get some consensus/feedback on.
0.01px
) is valuable for me - I'd never use 0.01 after reading first comments to that answer, but may give it a try with this addition (if ancient browsers compat is not crucial).