There's ample evidence of previous discussions about Code-Only answers, which all reach the (reluctant?) consensus of code-only answers being acceptable (as in shouldn't be deleted), but up for downvotes.
So why am I bringing this up?
I hope to solve or at least mitigate one or more of the following problems with SO by making code-only answers undesired:
- FGITW Answers that dump possibly working code on people
- People getting free fish, not getting a fishing rod and a fishing tutorial
- "Can I haz teh codez"
Coming from our sister-site Code Review I came into contact with the iron rule, that answers without explanation are subject to deletion. This policy is strictly enforced by moderators and high-reputation users likewise.
While Code Review has a significantly different model than Stackoverflow, there is a common element:
Give a man a fish, you feed him for a day; Teach a man to fish, you will feed him for the rest of his life
As a result of this policy, users gain significant understanding of the subject matter which results in huge learning effects, making the internet a better place not only for these single users, but for all people who read such answers. Also answers are subjectively of higher quality in the mean.
Code-Only answers is equivalent to handing out free fish, and it's a strengthening factor for the problems I mentioned above. I think it's one of the reasons that FGITW works, that people post "Can I haz teh codez" questions and receive answers.
Additionally free fish often results in users not understanding the code they use later and when the time comes to modify it, they have "no choice" but to ask another Stackoverflow question, which shows similarly lacking understanding. This just amplifies the flood of questions.
Moreover every so often new-ish users join the ranks of community-moderation and time and time again they come to meta asking why code-only answers are not deleted. I conclude they intuitively think that code-only answers should be delete material. And time and time again the wall "Code-Only" is an attempted answer, so it shouldn't be deleted stops them in their tracks. Even experienced community moderators with thousands and thousands of reviews under their belts say (freely adapted):
I usually either use "delete" or "skip" for code-only answers in the VLQQ. From a curation standpoint these answers are useless.
Overall code-only answers are big signal that SO shouldn't want to send in my opinion.
I understand that there is users, who are not good with formulating explanatory text.1 But I think the "damage" done by enabling no-effort users and at best mediocre answers is higher than the damage from explicitly putting such answers up nuking cleanup.
Am I assessing this situation wrongly, or should we start curating such answers more aggressively (by editing or even deleting)?
So why am I bringing this up?
- Really, why? How your discussion does differ from ones you link, e,g, from this one? If you have your opinion on existed topic, just post it to corresponding topic. Experience of Code Review user would be useful there.