last day (14 days later) » 

12:19 AM
32
A: Reduce "try this" answers by giving a helpful message

sthSometimes concise and straight forward questions have concise and straight forward answers. I don't see why that's a problem and it shouldn't be required to fluff up an answer with useless text that obscures the interesting parts. When the question is "How do I do X", a code snippet showing how ...

 
Of your 6 examples, the 2nd, 4th, 5th, and 6th all provide an answer outside of the code example. Only the first and third are really code only answers without an explanation.
 
And both could use a little, in my view. But again, there will always be exceptions, as I said. Compared to the torrent of "try this" we get in some tags, the occasional exception doesn't bother me.
"Sometimes concise and straight forward questions have concise and straight forward answers." And absolutely no disagreement there. That doesn't make code dumps good answers.
 
sth
@Servy: By a simple rule like suggested here they don't provide enough explanation.
 
@sth Writing the content as a complete sentence rather than as a sentance fragment would take care of that.
 
all these examples contain some kind of explanation... except one, and that one could be highly improved with one. this is a very deceiving practice, people not following the links will simply assume that you're showing evidence....
 
sth
12:19 AM
@KarolyHorvath: All those answers contain "just one line of text above a code block where the text has fewer than, say, five words" and would therefore be blocked by the suggested checks. So the linked answers are very much relevant and show what would be forbidden by the suggested implementation. The semantic content of the text is not really relevant since that cannot be determined automatically by a posting filter.
@KarolyHorvath: Also I seem to suggest that an answer "Use printf: printf "abc"" is ok but "Use this: printf "abc"" wouldn't be? Do you really think the second one is much less clear and therefore not useful?
 
these extereme cases are infrequent enough not to worry about them. we already have minimal character count restriction. just write something.
 
sth
@KarolyHorvath: I didn't have to even really search to find those examples. I just looked through a few of mine and another guys top voted answers. So I don't think such answers are that rare, and they also often seem to be well received by a lot of people (lots of upvotes). I don't think writing something additional for the sake of it would make the answers better.
 
@sth I agree, same point I'm making on my post and the example answer I gave was literally a "How do I do X" question. I don't see the point of trying to prevent something that sometimes is helpful. If someone does give an answer like that that isn't helpful, it can be flagged as "not an answer" or just down-voted to oblivion (while telling the poster the error of their ways of course!)
 
@sth You say that you didn't have to search hard to find those examples, and yet the examples you provided weren't actually code-only answers without an explanation. You didn't actually find examples of "good code only answer". You just found examples of answers with code and an explanation that you incorrectly claimed were code-only answers. That this answer has gotten so many upvotes is extremely disheartening; people apparently couldn't be bothered to even look at the examples (and your answer has nothing else in it) before voting on it.
 
sth
@Servy I searched and found examples that would be blocked by the feature suggested in this feature request. The requested feature is to block answers with code blocks that aren't accompanied by enough text. The answers linked in my post fit that description and would likely not be allowed to be posted. If people think such answers should be allowed to be posted, why is that disheartening?
 
12:19 AM
@sth As I said earlier, all that would need to be changed for those answers would be for the explanations to be complete sentences, rather than sentence fragments. They would merely be required to complete their explanations; the idea that they would not post the answer at all seems highly unlikely. But most importantly, your answer is a lie. You say, "here are a bunch of code only answers, without explanations, that are good answers." You then follow it up with a list of answers that aren't code only and contain explanations. Your examples are not at all what you claim they are.
 
sth
@Servy: I say here's a bunch of answers without lots of explanation.
 
So you consider 6 words to be "lots of text".
 
This answer applies to the examples given in the answer, but each of those are a specific kind of question, namely a question where the asker knows exactly what they want or need, but are just struggling with the syntax or are in search of the name of a specific method. Very often though, those questions aren't completely clear, or they describe a bigger problem that is not solved by a single function call, but by a custom code snippet of multiple lines. In those cases an explanation of why that solution works and OP's solution doesn't is certainly desired (and I think, required).
 
Uh. "Concise and straightforward" is just sweet talk for lazy-bummed oneliners. While everyone's free to believe those raised the overall reference quality of SO, it's silly to completely ignore the correlation here. They may look completely different, but there's no explanatory difference between a pasty "Use strrchr." and a Try this: code dump hiding it within.
 
Almost all of the answers you linked really need/could use an explanation in plain text for what they're doing.
 
12:19 AM
@TylerH in your opinion. The hundreds of upvoters and the accepted answer status for nearly all of the referenced answers states that the opinion of the masses is contrary to you. They sure wouldn't have received so much accolade if they needed more information!
@Servy how about instead of being a royal douche bag on everyone else's answer you don't agree with, give an answer yourself. All I see on this thread is you flaming everyone's opinion that doesn't match yours. Please, give your own views so we can dissect every word you say, twist it around and throw it at you.
 

last day (14 days later) »