8

I did a search on Meta, and the consensus seems to be that code-only answers are often unfortunate but should not be deleted.

Some people recommend to downvote them. The review interface does not provide an easy option to downvote, and even if it did, I'd hesitate to downvote a question on technology I know litte about.

If we're not supposed to delete them, why do we place them in the review queue?

Edit: to clarify: I meant, more specifically, "why does automated algorithm places code-only answers in the queue?" I have to agree that we can't control what people flag :)

6
  • 4
    @BradleyDotNET The automated algorithm for feeding the LQP queue is one of the main causes of this problem though, it's not just bad flagging. These posts made up a decent percent of the items in the queue even before VLQ and NAA flags were directed into this queue.
    – Servy
    Commented Nov 11, 2014 at 20:24
  • 1
    To the actual question: Perhaps to avoid spammers getting away from the VLQ queue by just encapsulating their crap in code ticks? Commented Nov 11, 2014 at 20:27
  • 3
    Personally, I think they should belong in the low quality queue. I generally respond with a comment "Its often better to have a brief explanation than to have code only answers." The vast majority of these posts are posted quickly without much thought or tests, and don't do much to educate further readers.
    – IdeaHat
    Commented Nov 11, 2014 at 20:29
  • 1
    @MadScienceDreams if a comment is the right answer, can we add that comment to the review inteface? I guess this is a separate Meta question :)
    – user3458
    Commented Nov 11, 2014 at 20:30
  • @Arkadiy It would be nice, especially since I get locked out if I hit a few of these in a row (which was actually the reason I came to meta this time). Another reason to discourage code-only answers is that they don't do anything to increase the searchability of a question. If the question is super simple and the user just doesn't know the keywords to search for, then this doesn't add the correct keyword association to the question-answer pair. If it is super easy to search for already, then you're rewarding help vampires and you should still be discoraged.
    – IdeaHat
    Commented Nov 11, 2014 at 20:34
  • @MadScienceDreams LQP is there for posts that are just terrible, so terrible in fact that they need to be immediately cleansed with fire and deleted because they're just that obviously bad. It's not there to deal with answers that are in fact answers, have a place, and shouldn't be deleted, but that might have problems to fix. There are other tools in place for that.
    – Servy
    Commented Nov 11, 2014 at 20:47

1 Answer 1

14

Simple: the system has nothing to go on when trying to decide on the quality of the post.

Let's take this answer for an example:

INSERT INTO STG
SELECT ID,NULL,DATE FROM CUSTOMER

There are two ways the current checks could process this:

  1. Treating code blocks as prose, this looks really bad - it's all in caps, punctuation and spacing are pretty wonky, and it's really short.

  2. Ignoring code blocks, there's nothing left - so you get a rock-bottom quality score by default.

Either way, the results are bad - the system just isn't able to correctly determine when a block of code (in any language) looks good and when it doesn't. So we toss it in front of humans who presumably will have an easier time of this.

Note that the threshold for kicking these out of the queue is pretty low unless they also get flagged.

5
  • 1
    Granted, things would be a little bit easier if fans of certain languages didn't INSIST on pretending they're still writing code using 1950s TELETYPES.
    – Shog9
    Commented Nov 11, 2014 at 20:48
  • Would you prefer Brain____ then? There's no letters in that language :D
    – Compass
    Commented Nov 11, 2014 at 21:29
  • 4
    I was just about to start submitting pictures of punchcards as answers, dammit...
    – Louis
    Commented Nov 11, 2014 at 21:46
  • This suggests that the current checks are too blunt. The system keeps dumping code-only answers into the low quality review queue. And while they may be bad answers, they are rarely ever bad enough to warrant deletion - reference discussion. I think it would be better if code blocks are indeed ignored, and if the post consists of nothing but code, then let it be.
    – Lundin
    Commented Jan 19, 2015 at 10:50
  • Giving up is probably not a useful strategy here, @Lundin. See: meta.stackoverflow.com/questions/284563/…
    – Shog9
    Commented Jan 27, 2015 at 18:33

You must log in to answer this question.