14

I flagged this answer as "very low quality" because it is a code snippet without any explanation. However, my flag was disputed.

Can anybody explain why code-only answers are not "very low quality"?

5

2 Answers 2

27

You can't make a blanket statement like, "If I see a code-only answer, it must always be low quality due to being code-only". Sometimes, in the context of the question itself, short snippets of code can be extremely helpful.

The answer you linked to was not helpful in the context of the question. In fact, as written, it was barely relevant. But that doesn't mean all answers that contain little more than code are the same - it depends on the answer.

Did the answer help you understand the problem being described in the question? If so, it's not low quality.

1
  • 6
    Ok. I agree with you. But mostly code with many lines is hard to understand without any comment.
    – Jens
    Commented Aug 2, 2017 at 10:53
7

Yes, code-only answers are VLQ here, because the SO is not a code snippet sharing site. We use meaningful, well-formulated, human communication to share our thoughts. It is a much higher level of the communication, as writing a question on a semi-literate level, and then answering it with a code snippet.

Typically beginner programmers tend to think, that communicating purely in code snippets is a HQ thing, but it is not. In our minds, there are still human concepts and human terminology. We are thinking on a human language. Communicating in source code is not an advanced level of communication, it is a degradation of it.

Not doing with code-only answers anything (at least voting them down, or flagging them as VLQ if they seem unsalvageable) breaks windows, i.e. it encourages others (typically VLQ posters) to follow this bad behavior.

The StackExchange does a pretty amazing job to enforce these "young titans" to learn to formulate in round, natural language sentences, if they missed to learn this skill in the elementary school.

8
  • 1
    VLQ has a very specific meaning; a meaning that a code only answer doesn't meet. You might think that it's a low quality answer, and therefore decide to downvote it, and that's frequently going to be appropriate, but it's going to be very rare for such an answer to merit deletion.
    – Servy
    Commented Aug 2, 2017 at 14:13
  • @Servy Okay, I edited the post. How about now?
    – peterh
    Commented Aug 2, 2017 at 14:15
  • 1
    @peterh No, it's still saying that code only answers merit flagging as VLQ, and that's almost never going to be the case. VLQ isn't for answers that you don't like, or think are bad, it's for answers that have nothing of value in them and that are entirely unsalvageable, which is basically never true of a code only answer, because you can always add the missing explanation to the code to salvage it.
    – Servy
    Commented Aug 2, 2017 at 14:17
  • 2
    @Servy My experience is that code-only answers have often also other major problems, what can be fixed only by fixing the code. Or by deleting the post (for example, if they solve a different problem). They tend to have major problems in the readibility/clarity line, too. The central point of the sentence is that letting them as they are is not okay. What exactly has to be done with them, is not a central point. I edit the post again.
    – peterh
    Commented Aug 2, 2017 at 14:23
  • @peterh The central point of the question is whether or not a VLQ flag is merited, and the answer is they aren't. Sure, something should probably be done, but that "something" isn't to flag it as VLQ. That's an improper flag.
    – Servy
    Commented Aug 2, 2017 at 14:37
  • 1
    what can be fixed only by fixing the code - That just makes the answer wrong. It doesn't mean it's not an attempt to answer at all.
    – BSMP
    Commented Aug 2, 2017 at 14:40
  • @BSMP Plus it's weird English :P
    – Clonkex
    Commented Aug 4, 2017 at 1:25
  • @Clonkex And still this is my opinion, with my weird English. What do you think, how can it be possible?
    – peterh
    Commented Aug 4, 2017 at 1:52

You must log in to answer this question.

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