3
\$\begingroup\$

This question already has an answer here:

I was browsing through the tag and saw this question. It looks functional and is certainly review-able, but OP posted absolutely nothing besides the code. No hint about what it does, or what OP expected from the review. That feels off-topic to me, but I don't know what I would categorize it as.

  1. Are code only questions off-topic?
  2. If so, what do we categorize them as?
  3. Should they only be flagged as low quality?

I would call it "Unclear what you're asking", but by default, aren't people asking for a Code Review?

Note: OP has not been seen since May 7th 2014. I don't think she's coming back.

\$\endgroup\$

marked as duplicate by RubberDuck, rolfl Jun 5 '14 at 15:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • \$\begingroup\$ This may also be similar. \$\endgroup\$ – Jamal Jun 5 '14 at 3:07
  • \$\begingroup\$ Similar? I'd call it a duplicate. I swear I looked first. \$\endgroup\$ – RubberDuck Jun 5 '14 at 3:11
  • \$\begingroup\$ I was a little hesitant, especially because it doesn't address the third question. \$\endgroup\$ – Jamal Jun 5 '14 at 3:14
  • \$\begingroup\$ I was hesitant to even put that in there @Jamal. I've personally never understood why Low Quality is even there. All questions being flagged/close voted are by definition low quality. \$\endgroup\$ – RubberDuck Jun 5 '14 at 3:18
4
\$\begingroup\$

Are code only questions off-topic?

No, not by default, and neither the Help Center nor the close reasons specifically state that code-only questions are off-topic. Others can still ask questions to flesh out any issues with the code, which will help determine if it is off-topic.

Should they only be flagged as low quality?

No, they should not be flagged automatically, especially as Low Quality. This flag would only be viable if the post makes absolutely no sense (such as gibberish) or is just too poorly-written to edit. In general, this flag should best be used if a post needs to be deleted (where Spam/Offensive flags do not apply), not simply closed.

In conclusion, ask the OP for clarification if you need more information, or if you suspect that the code may not work. If nothing is done, then it can be closed as unclear what you're asking. You may also downvote it if you dislike it.

\$\endgroup\$
  • \$\begingroup\$ Thank you for clarifying the Low Quality post. I do believe we should discourage the behavior. Downvoting questions like this is probably the appropriate thing to do. \$\endgroup\$ – RubberDuck Jun 5 '14 at 3:26
5
\$\begingroup\$

I don't think that code-only questions are off-topic. However, a question that consists solely of a huge code dump without context could be closed as "Unclear what you are asking" — assuming that it really isn't clear what the intention of the code is.

\$\endgroup\$
  • 1
    \$\begingroup\$ In particular case, the docstrings are considered part of the description. If a reader doesnt bother to look at that and just goes on rampage "ey that is just code... close it..." well that is reader's fault. \$\endgroup\$ – ArekBulski Oct 10 '16 at 12:38

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