5

There are many answers which are controversial in Stack Overflow. These answers are usually bad (but shouldn't be deleted) but OP is not aware of that.

We do want to warn visitors from using the code suggested in such questions. We can:

  • Downvote the answer
  • Leave a comment
  • Suggest a different answer

However, many Google visitors don't usually pay attention to comments - All what they care about are the shiny green "v" supported by big number of upvotes.

This thread Can we do something about old/outdated/terrible highly upvoted answers? brings an important issue that we should know how to handle. I want to suggest auto-expanding the vote count or maybe adding a small disclaimer when the post is controversial* (maybe if the count > threshold and 1/3 of the votes are down). For example, a "dangerous" answer will look like:

Controversial count

Maybe with a message indicating that something doesn't feel good with this post.

Pros:

  • It might prevent blindly copying-pasting answers without realizing its consequences
  • It's guaranteed to be viewed (as opposed to comments)
  • Will leave the answer as "how not to" for future users

Keep in mind that I'm not requesting this for all posts, only for specific posts that have many attention/votes and are really controversial.

Please let me know why you think it's a good/bad idea, your input is highly appreciated.

* I have many suggestions regarding the definition of "controversial" - We can thin about it together if you agree with the basic idea.

23
  • 2
    "but shouldn't be deleted" Why not? If they are verifiably wrong, they are at best noise polluting the site, at worst actively harmful.
    – Magisch
    Jan 7, 2016 at 12:35
  • 1
    @Magisch Not really, some answers do address the question and can have additional value (even if their quality is bad) - Someone can know "how not to". Deleting it might hide the dangerous impact of using it. See the linked discussion.
    – Maroun
    Jan 7, 2016 at 12:37
  • 2
    Too much collateral damage. SO users have a very unhealthy attitude towards "No, you can't do that" answers. Pretty important that they get posted, there is no upper limit on how much time programmers spend on trying to do something impossible. But never appreciated, they demand to able to do it anyway. Such answers get voted "unhelpful" with gusto, even though they are actually very helpful. Jan 7, 2016 at 13:05
  • 1
    @HansPassant I think this will help people have another look at other answers before they pick the problematic one.
    – Maroun
    Jan 7, 2016 at 13:17
  • 12
    I like the basic idea, but I'm not sure if showing the vote breakdown gives enough information. For example, it would be hard to tell the difference between an answer that was once correct and is now badly outdated and one that was once incorrect but was later edited into shape. Maybe a sparkline showing how the answer is trending would fix that? Jan 7, 2016 at 13:19
  • I really like the sparkline idea, @BilltheLizard, maybe it could be put in place for answers older than specific time.
    – Phantomazi
    Jan 7, 2016 at 13:29
  • @BilltheLizard That sounds good. Don't you think expanding it would give an indication about its quality? If it's not expanded some users might think that it's 100% agreed on.
    – Maroun
    Jan 7, 2016 at 13:35
  • 2
    @MarounMaroun I think expanding the vote count to get people's attention is a good idea. For the example you gave (+136/-71), I'd say that's probably a bad answer that used to be good, but newer users might not be able to tell. Jan 7, 2016 at 13:41
  • @BilltheLizard Why won't they given that >50% of the votes are negative? We can also consider an auto-generated message warning about a possible deprecation.
    – Maroun
    Jan 7, 2016 at 13:42
  • 7
    @MarounMaroun Only 1/3 of the votes are negative. You still can't really tell by the vote ratio because you don't know when the votes were cast. If all of the upvotes came first, then the downvotes, I know that the answer is probably outdated. If all of the downvotes came first, then the upvotes, I know that it was probably a bad answer that got fixed later. Jan 7, 2016 at 13:45
  • @BilltheLizard Good points. We can of course consider them and improve the request.
    – Maroun
    Jan 7, 2016 at 13:47
  • 1
    @BilltheLizard Either way, it tells you that something up. From there it puts you on your guard, encouraging one to, for example, read the comments, and the comments would almost certainly explain why the answer is controversial. So the reader just needs to be given a reason to care to read the comments.
    – Servy
    Jan 7, 2016 at 14:49
  • 1
    @Servy Yes, the comments might tell you why the post is controversial, but they won't tell you which way the wind is blowing as quickly as a trend line. Jan 7, 2016 at 15:05
  • 1
    @BilltheLizard If the up/down votes aren't shown on posts because it's too computationally expensive to generate it for posts when loading the page, I wouldn't hold out much hope of having a graph of all votes over time shown to all users at all times.
    – Servy
    Jan 7, 2016 at 15:07
  • 1
    @Trilarion Yes, if a trendline for controversial posts is too expensive, then a static image showing an upward or downward trend should be fine. Jan 7, 2016 at 21:25

2 Answers 2

1

Simply showing the score clearly misses information about the controversiality of the voting. Currently seeing the plus/minus votes is a privilege gained by enough reputation.

Instead of Auto/Expanding the vote count which is not intuitive enough, I would rather like to add some kind of tag, symbol or notification to the answer (visible to everyone) in case it is controversial. If everyone can see this they might think twice before mindless upvoting of bad answers.

How to define controversality?

As in the question. For clarity:

Average Vote = Score / Total Number of Votes

which is a number between [-1,1]. If this number is in [-0.5, 0.7] (or some other suitable interval around 0) and the total number of votes (to avoid noise influence) is larger than say 10, then the answer is controversial.

How to show this?

  • As a tag: "controversial" (with a suitable tooltip)
  • As a symbol: Displayed either at the bottom or next to the score
  • As a message: Below the answer: "Voting on this answer is controversial. What it could mean."
1
  • 2
    This might later be extended with other qualifications like "regarded deprecated", "tutorial like answer", ... in case there is demand. Jan 7, 2016 at 19:38
1

Users that can see vote counts aren't the ones that need protecting. They have enough rep to know how the site works.

Users that would need this kind of protection need it because they don't pay enough attention to other answers. They don't read comments. They just grab the accepted answer and use it.

Adding something to the UI doesn't help them. They won't notice.

4
  • Expanding them for all users. Why won't this help? Isn't the fact that 1/3 of the votes are negative enough to think again?
    – Maroun
    Jan 8, 2016 at 7:24
  • Maroun, the users that blindly copy the accepted answer don't care about / pay attention to vote count. Expanding it doesn't make a significant difference. Otherwise, they'd have used the answer that has twice the upvotes, but wasn't accepted, back in the day.
    – Cerbrus
    Jan 8, 2016 at 7:26
  • 1
    They copied it because of the amount of upvotes. (Many of my colleagues decide that it's a good answer only because it has >50 upvotes). What I'm saying is that once they have BOTH negative and positive counts already expanded, it might give them an indication that something is bad.
    – Maroun
    Jan 8, 2016 at 7:28
  • If they copy an answer based on the amount of upvotes, there isn't a problem, since the proper answer usually receives more upvotes than a incorrect accepted answer.
    – Cerbrus
    Jan 8, 2016 at 7:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .