Imagine that the question is simple enough to answer with one sentence (or one line of code) and it's not really useful for the community - only for the OP asking.

What should I do? Leave a comment, or make it an answer?

  • 4
    I feel guilty earning reputation from such questions, so I usually leave my answer as a comment, and consider voting-to-close the question as "Too Localized"
    – Matt
    Jul 5, 2012 at 10:27
  • 1
    +5 for caring about what is useful to the community. -4 because I could get my sock puppets busted. ;) Jul 5, 2012 at 11:21

2 Answers 2


Such questions ought to be closed. Do not answer a question that you think deserves a closing.

It is really a bad idea to post one-line-of-code answers (though everyone does it). These answers aren't really helpful to anyone but the OP. If you can, it ought to be expanded with an explanation. If you can't explain it (or the explanation is too "dry"), the question is probably close worthy (/flag worthy). Use "too localised"

Actually, the above points also apply to any type of code-only answers, just to a much lesser extent.

If you want to help the OP anyway, you can always answer in a comment.

We want our answers to be of use to visitors, not just the OP. More often than not, code-only answers just solve the OPs problem. They don't help anyone learn anything, and don't help visitors at all. We don't want to be one of those fora where you post any damn thing and get a solution--that's just clutter. We want to Make The Internet Better(tm) with good answers that explain the issue, and help everyone learn--the visitors and the OP alike.

  • Agreed; if you don't feel good posting a code snippet and a short explanation in such a case, the question possibly needs to be closed. Maybe leave a comment to answer the OP's query if you feel so inclined. Jul 5, 2012 at 11:18
  • @AndrewBarber: Right, I was going to add that but it somehow slipped my mind. Thanks :) Jul 5, 2012 at 11:28
  • 1
    Too localised no longer exists; what close reason should we be using? Mar 30, 2014 at 7:37

I'm not sure there is a hard rule for this, but my suggestions is that even if stopping at one sentence is enough, try to expand it. If the question is not a great question, your long and explicative answer will improve the question "overall" and it'll probably give you lots of upvotes.

As hinted in the comments under my answer, this is actually encouraged behavior. If you gain +20 upvotes and the question is at -5, you'll get the Reversal badge. Don't stop at the minimum: if you think you can say more (related stuff), then do it!

By the way, if the question deserves to be closed for some reason, go ahead and vote to close.

  • 1
    +1 I can't disagree. I imagine the Reversal badge was in part conceived for this sort of thing. I've seen some epic answers to such questions, but they are rare. Jul 5, 2012 at 11:19
  • @AndrewBarber Yes good observation! :) Mind if I add that to the answer?
    – Alenanno
    Jul 5, 2012 at 11:54
  • Please feel free :) Jul 5, 2012 at 12:17

You must log in to answer this question.

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