2

I've already looked at Reviewing Low Quality Posts - Answers without explanation, but my question is a bit different - namely, I'm not asking if they should be deleted (I already know they shouldn't, I should vote "Looks OK"), but if and how to comment on them.

So upon encountering such an answer, should I add a comment telling the author that it's not good practice to post code-only answers?

Also, if it's good to comment on them, can you suggest a good boilerplate comment for pasting? Something along the lines of "Don't just post a code dump, are you a mute or something?", but in more polite terms?

3
  • 4
    Some of my highest voted posts are code-only. Unsurprising on a programmer's site. It does of course matter that it is the right code, is readable with appropriate comments where necessary and that it solves the OP's problem. If you don't know whether the code is right or not then don't comment, ask your own question about it to learn more. If you know it is wrong code then just DV. Jan 21, 2015 at 11:15
  • 3
    How about something like "While this code block may answer the question, it would be best if you could provide some explanation for why it does so." Jan 21, 2015 at 12:41
  • I'm voting to close this as a duplicate. The accepted answer on the question you link to already addresses this question. It very clearly states you should do this and provides some wording. The issue of commenting is even raised in that question.
    – jpmc26
    Jan 23, 2015 at 2:38

0

Browse other questions tagged .