13

While searching for an answer to a JavaScript question, I came across an answer which simply posted the same code which the OP had included in the question: https://stackoverflow.com/a/13399692/5798798

What is the best way to report this? Should I flag it as 'not an answer', or a custom flag?

2
  • 1
    In this particular case since neither accepted answer nor one you are talking about do not actually answer the question ("Why standard way of blocking default browser click on HREF does not work") you may want to provide your own answer (or suggest duplicate as you probably found more than one). Jan 2, 2018 at 18:01
  • 1
    If the answer were nothing more than a copy-and-paste of the code in the question, I'd be very tempted to call it Not An Answer. But the code in the answer is merely equivalent to the code in the question (the answer's code is more generic), and it includes a description. It is an answer, and it's incorrect. (It's 5+ years old and currently has 9 downvotes and one delete vote, with a comment explaining the situation, so I'm not inclined to pile on with another downvote.) And there's an accepted answer too. Jan 3, 2018 at 17:25

1 Answer 1

14

It's not "not an answer". It's an attempt to answer the question, it's just a really bad answer that fails in its attempt to answer the question. When an answer is wrong, or bad, you don't flag it at all. You use a downvote to indicate that you don't think an answer is useful.

If you think you can help the author of the post fix it and turn it into a useful answer, you can also comment with how they could improve it.

31
  • 6
    Actually answering the question would be an improvement then, yes...
    – Jongware
    Jan 2, 2018 at 15:21
  • 2
    I don't think I want to be the person to tell that poster, "hey, but that's just the original code – here's what to change..." It is an (bad, bad attempt to) answer and as it's not useful in its current state, I'll just downvote it.
    – Jongware
    Jan 2, 2018 at 15:28
  • 1
    In this case Code posted by OP should work as requested. If you read whole question turned out MCVE was not provided and that code should work as an answer. Jan 2, 2018 at 15:38
  • 4
    @AlexeiLevenkov And an answer saying that they couldn't reproduce the problem would be Not An Answer. This isn't that though. This is someone posting what they think is actually fixing a problem and providing an answer, but is in fact just re-posting what the OP has.
    – Servy
    Jan 2, 2018 at 15:48
  • 2
    @AlexeiLevenkov If you think that the answer isn't useful, you can downvote it, as I have said in my answer. If you feel that the question doesn't contain enough information to be answered, then yes, by all means, vote to close. But the question meriting closure doesn't make the answer NAA. And I agree that the accepted answer is not a useful answer for the same reason this answer isn't useful, but neither answer is NAA.
    – Servy
    Jan 2, 2018 at 18:00
  • 1
    In this case the answer was too old, but ideally you would flag a new answer like this as Very Low Quality, and then downvote and, if you wish, comment.
    – TylerH
    Jan 3, 2018 at 17:50
  • 2
    @TylerH No, VLQ is not for things that aren't useful. Downvotes are for things that aren't useful. VLQ is for things that aren't even answers. Not for answers that you think aren't useful. If you think it's not useful downvote. Don't flag.
    – Servy
    Jan 3, 2018 at 18:43
  • 3
    @Servy No, NAA is for things that aren't even answers. VLQ is for things whose quality is so low that it isn't worth keeping around, like an answer that just repeats some part of a question.
    – TylerH
    Jan 3, 2018 at 18:45
  • 4
    @Servy not just incomprehensible, but also with severe content problems. Again, this is a VLQ answer, and should be deleted. You're free to disagree, though.
    – TylerH
    Jan 3, 2018 at 18:57
  • 2
    @TylerH No, the answer isn't VLQ. It's not a matter of opinion. A post isn't VLQ because you think it's wrong. The whole idea of flags is that they're not evaluating the technical merits of an answer. That you think it's wrong doesn't make it VLQ. If you think it's not useful downvote it. Abusing flags because you want to do more than downvoting when a post only merits a downvote isn't appropriate.
    – Servy
    Jan 3, 2018 at 19:11
  • 2
    You don't need domain knowledge to know the answer is an exact copy of the question without any change... (but yes, this was an attempt at answering) Jan 3, 2018 at 20:32
  • 4
    @Servy I think it's VLQ because it's VLQ. This is my opinion, and yours is clearly different. Your flags are yours to use as you like, but it's not abuse to flag a VLQ answer as VLQ, and you saying otherwise is harmful to the health of this site. Good day.
    – TylerH
    Jan 3, 2018 at 20:38
  • 3
    Ehrm.... how is an answer which simply posted the same code which the OP had included in the question even considered a attempt at an answer
    – EpicKip
    Jan 4, 2018 at 11:22
  • 2
    @EpicKip The intention of the author of that answer appears to be that he was trying to answer the question. To me it looks like he came up with the same code as the question, simply because that code does work. He probably didn't pay enough attention to the code in the question when answering, but that doesn't make it no attempt to answer, so NAA shouldn't be used. However, since the answer isn't really a good one, and it isn't salvageable, it should probably be deleted anyways, so perhaps VLQ is a proper solution as TylerH mentioned.
    – g00glen00b
    Jan 4, 2018 at 11:39
  • 2
    @g00glen00b I have a hard time believing that a "code doesn't do what I want, how to make it do what I want?" question is ever answered with "code that does the same thing that you don't want". There's a section in the help center that says "Answers that do not fundamentally answer the question may be removed".
    – Braiam
    Jan 4, 2018 at 14:31

You must log in to answer this question.

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