36

Whenever I go into the "Low Quality Posts" review queue, I'd say a good 75% or more of them are code-only answers. I almost always say they "Look OK".

Looking through some older meta posts, this has been brought up again and again and again, and the general consensus seems to be that code-only answers are fine, yet people are continuously using this flag.

The flag description reads:

This answer has severe formatting or content problems. This answer is unlikely to be salvageable through editing, and might need to be removed.

Which sounds appropriate to me, as there are often a lot of truly low quality posts riddled with misspellings, incoherent grammar, broken code snippets, etc. that need to be fixed up/edited. I'd like to spend more time fixing those than approving code only answers.

Has any action been taken to reduce the amount of code-only answers entering the "Low Quality Posts" review queue, and if so, is it working? Can we get any stats on how effective it's been?

28
  • 3
    I assumed most of that was automatic flags (the Meta.SE link makes it seem less likely since code-only is not listed). If that's actually from users flagging, that's disturbing. Almost as disturbing as all the incorrect reviews I've discovered since gaining access to the queue. Jul 16, 2018 at 23:13
  • 32
    The flag isn't the only way that answers enter the LQRQ. We all know that code without an explanation isn't a good answer, and the help center makes clear that.
    – Braiam
    Jul 17, 2018 at 0:37
  • 5
    @Braiam Can you point out one excerpt from stackoverflow.com/help/how-to-answer where they say a code only answer isn't a good answer?
    – dwirony
    Jul 17, 2018 at 12:45
  • 10
    @dwirony that specific page isn't all too specific about it, you can deduce it from the fact that "Brevity is acceptable, but fuller explanations are better.". Sometimes code is all the explanation you need, but often times it isn't. Still, the page definitely could spell it out a little more.
    – Gimby
    Jul 17, 2018 at 13:21
  • 6
    @Gimby Sure, I can deduce that - but when I re-read the flag description, I just don't see how a code only answer (while maybe not being GREAT) has "severe formatting or content problem".
    – dwirony
    Jul 17, 2018 at 13:26
  • 4
    @Braiam Again, can you give me a specific excerpt from the guidance in the review queue which speaks against code-only answers??
    – dwirony
    Jul 17, 2018 at 16:07
  • 4
    Yes, I agree on this. While code + comments is often better I would say 1. code only is often more than adequate, especially commented code (!) and 2. code-only answers probably average in the top 10% of quality answers, as opposed to comment-only which is usually awful. Plenty of exceptions to these trends, of course. In my case I know to avoid it except when it's just super self-explanatory and OP agrees. However, it is tempting to do your commenting as commented code so that you can type it all in your IDE. I do this sometimes, though I usually remember to uncomment it on SO
    – Hack-R
    Jul 17, 2018 at 16:10
  • 3
    @Braiam It's the "Low Quality Post" review queue because the posts have been tagged with the "Low Quality" tag. How is it used for anything but reviewing low quality flagged posts?
    – dwirony
    Jul 17, 2018 at 16:20
  • 2
    No, they are not tagged. Tags, in the context of SE, means a very specific thing: tags of the questions. The purpose of the low quality post queue is to "[i]dentify, then improve or delete low-quality posts". Note how it isn't only for deletion.
    – Braiam
    Jul 17, 2018 at 17:46
  • 9
    On the contrary, @Hack-R, code-only answers are rarely adequate, at least for questions that are good in the first place. I will make a special exception for answers that embed the wanted prose into the code in the form of comments, however, as that's "code-only" only on a technicality. Those are not the answers I think we're actually talking about here. Jul 17, 2018 at 18:16
  • 3
    @dwirony It's not just there to evaluate user-cast low quality flags. In fact, originally user cast low quality flags didn't even send posts to that queue. Originally the queue was all about evaluating posts that met an automated system's heuristics for a post that may be bad. Now it's a combination of both, as user cast low quality flags are mixed in with the automatically generated ones.
    – Servy
    Jul 17, 2018 at 18:17
  • 6
    @JohnBollinger Note however that there's a difference between a bad answer, and an answer that is so bad it needs to be deleted. There's a big difference between the two. Inadequate explanation isn't grounds for deletion of an answer. It's a great reason to downvote it though.
    – Servy
    Jul 17, 2018 at 18:18
  • 5
    @JohnBollinger I respectfully completely disagree, usually a code-only answer, especially with comments in the code (commented code), is usually so high quality because people who are posting code typically have the answer the OP needs, at least in my tags. OTOH newer users like to leave comments as answers with no code. I think as long as the code appears self-explanatory to the OP, answerer, and observers it's fine. But like I said, comments make it better.
    – Hack-R
    Jul 17, 2018 at 18:49
  • 9
    ...this must have been changed since I was most active. Used to be code-only answers were unacceptable because they didn't explain what the problem was.
    – Izkata
    Jul 18, 2018 at 13:48
  • 3
    Code-only answers that are commented adequately are, by their definition, not code-only and shouldn't be flagged. Anything else, flag away.
    – Ian Kemp
    Jul 19, 2018 at 11:46

0

You must log in to answer this question.