I just stumbled across this question. While the question itself is not perfect, both the answers to date have just been blocks of code.

When I reply to a question, I usually (admittedly, not always) add a sentence or two explaining what the OP was doing wrong.

Are code-only answers a good thing? Or should we try to educate as well as solve the issue?

  • One of the answers just now had text edited in. Apr 18, 2013 at 2:26
  • 5
    I will always upvote the answers that actually explain the code and why it solves their problem over the ones that just provide the code.
    – animuson StaffMod
    Apr 18, 2013 at 2:27
  • @DavidRobinson That may be a result of my comment?
    – Basic
    Apr 18, 2013 at 2:28


Browse other questions tagged .