Questions tagged [code-only-answers]
Use for questions asking about answers that only contain code (and comments) and nothing else. If the answer contains any description outside the code, please do not use this tag.
23 questions
37
votes
2
answers
1k
views
New Bot strategy? Always including snippets no description
I recently came across some suspicious (plain nonsense) answers sharing the same characteristics:
The pattern
all answers have arbitrary code snippets – remotely matching the topic: e.g SVG, JS, HTML ...
3
votes
0
answers
66
views
"How to Answer" help page could use some references to code
Stack Overflow's version of How to Answer doesn't mention the word "code" once. I'd love to see an excerpt about code-only answers somewhere in there.
I don't know exactly what would belong, ...
-8
votes
2
answers
145
views
We need 'Code-only answer' category in the Low Quality Answers review
My understanding is that a code-only answer is not recommended in this community.
When I reviewed the 'Low Quality Answers', I wanted to choose 'Code-only' answer but there was no such category.
...
-12
votes
2
answers
186
views
Why do people think that straight code answers are acceptable?
From my experience, answers on this site that are literally just code don't really help all that much except for solving that specific problem. It is important that especially new users to programming ...
5
votes
1
answer
124
views
Should I recommend deletion for code-only answers? [duplicate]
In the Low Quality Answers review queue, there are only three options for dealing with answers: "Looks OK", "Edit", and "Recommend Deletion". Because of the limited ...
147
votes
11
answers
22k
views
Should I explain other people's code-only answers?
I have edited and added explanations to code-only answers to make them clearer.
Example:
I want to merge two lists in a single list [duplicate] (screenshot of deleted post for <10k users)
The ...
54
votes
1
answer
2k
views
How to improve my answer
Today I answered the question How to check if a website has HTTP/2 protocol support. One of the reviewers was kind enough to leave a comment and add the link to the review. The comment says:
This ...
8
votes
0
answers
152
views
Custom flag marked as helpful, but nothing changed
This answer caught my eye because it had nothing whatsoever to do with the question. When I investigated, I found this user has posted the same answer to at least a dozen questions. I raised a custom ...
17
votes
0
answers
602
views
Code-only answers [duplicate]
Does Stackoverflow follow this principle?
Is there any benefit to allowing code-only answers while blocking code-only questions?
I found a user that only dump code (with the text "You can use this ...
12
votes
3
answers
390
views
Should we change how we handle code only answers?
Historically we've left code only answers on the site. As they fall into the it is an answer bag, although some can be construed as low quality.
There's so many code only answers and people put ...
28
votes
1
answer
693
views
Is domain-knowledge required to determine whether code snippets should be commented?
This answer came up during a VLQ review, and I'm involved in a mild disagreement as to whether the answer as posted would be improved with comments.
Would it be better to leave code-only snippets to ...
-8
votes
1
answer
214
views
Why isn't there a minimum required length for text in answers?
With every answer I try my best to be as detailed and thorough as possible, providing as much information as I can, so it really bothers when I see answers that don't explain what the code does or ...
3
votes
1
answer
317
views
Code only answers in the LQPQ that are wrong [duplicate]
So, I came upon a situation I feel is a bit weird, hence I want to ask for clarification. The Low Quality Post queue gave me this answer to review. By coincidence, I had already seen it about an hour ...
36
votes
0
answers
1k
views
Can we reduce the amount of code-only answers entering the Low Quality Post review queue?
Whenever I go into the "Low Quality Posts" review queue, I'd say a good 75% or more of them are code-only answers. I almost always say they "Look OK".
Looking through some older meta posts, this has ...
15
votes
2
answers
716
views
Are there any guidelines to handle one-line (correct) code-only answers in various reviews?
While review, I see very short, code-only answers many times. I read on meta at many places that "code-only" should not be the only reason to delete/flag the answer. If the answer is wrong, down-vote ...