50

I've been answering a few questions on Stack Overflow, and I've also been replying to questions in comments—usually, when I do the latter, I am suggesting a code optimisation or a solution that literally only may take up 1-3 lines.

This time I was asked to write the code on this particular question:

Thanks @AlexM for the reply ,was asking if u could write the code for me as you suggested thanks

As shown, they're replying to a comment I posted. So how do I go about replying to that comment? Should I say "No" and specify a reason, or actually answer it, in comments?

13
  • 1
    Just updated the link to your question as I noticed the comment in the question myself.
    – Bugs
    Commented Mar 17, 2017 at 9:23
  • 5
    If you don't want to provide more information, then you are not obliged to reply to a comment. If you have (or want to provide) a full solution then you might want to consider writing an answer (and not a comment).
    – honk
    Commented Mar 17, 2017 at 9:28
  • @honk the former has been what I've been doing thus far. However, I feel that it's rather impolite to do so - especially if I reply to another comment on that same question but not to them, essentially ignoring them...
    – Ally
    Commented Mar 17, 2017 at 9:29
  • 48
    You invest your time on SO for free. Nobody can expect you to be here 24/7 and reply to every comment addressed to you. I don't think that you would appear to be impolite if you don't reply. And if the OP thinks it anyway, then the OP might have a wrong impression on what SO is for.
    – honk
    Commented Mar 17, 2017 at 9:35
  • 3
    @AlexM. imo for those code request, I check 2 things. 1/. Is the question worthy? ( op show time investisment in the question, op is willing to edit his question to make it more accurate, op is nice, op has the informed badge) if he fails More than 2 of those critera he has an automatique downvote . Commented Mar 17, 2017 at 11:34
  • 3
    2/. Do I have something usefull to say? If I don't see How writting the code could help explaining a common mistake or a specific issue. If I can write the code but don't have the level to explain why I do it that way. if I dont have what it takes to make a relatively good answer on the question. I pass. PS: This is more about answering than code writing. but for them it's the same. A valid answer must be a full code. Commented Mar 17, 2017 at 11:37
  • The alternative I'd take in that case would be "I'm not here to do your job/project for you, but to help you get it running. So when you get stuck along the way at some point, post the code that's not working for you and how's it failing, and we'll get it fixed in no time", while having a clear "he's not gonna do it" / "i'll help out if (s)he does it" expectation.
    – Shark
    Commented Mar 17, 2017 at 15:03
  • 3
    No. <--- empy space --->
    – Kevin B
    Commented Mar 17, 2017 at 18:52
  • 6
    In addition to what Pierre said, you might also consider whether the OP is willing to listen, even if you do have something useful to say. They replied to someone who left 2 comments requesting clarification with, "so how am i supposed to do it thanks". Trying to help someone who refuses to even acknowledge requests for more information never ends well.
    – BSMP
    Commented Mar 17, 2017 at 19:17
  • 1
    If you're a 10k plus user, you can see one way to deal with it at Array wraparound in C. It's not necessarily the best, but the end result — an unsatisfactory question where no effort was made to solve a simple problem is no longer visible — is one solution. The OP deleted the post while I was typing up another explanation, which was more than they deserved. Commented Mar 19, 2017 at 5:02
  • Don't worry too much about being "impolite". The more "polite" everyone is, the higher the expectations become for everyone else and soon we're all forced to walk on eggshells because "that's the site culture". As long as you are not insulting them, it's fine to give a direct refusal.
    – samgak
    Commented Mar 20, 2017 at 0:08
  • It depends. If you want to write an answer and you feel that it would be of genuine help to the OP & future readers, then go ahead and answer it. However, as S. L. Barth says, spoon-feeding isn't helpful in the long run. It seems pretty clear to me that the OP of the linked question is a help vampire and feeding HVs is counter-productive.
    – PM 2Ring
    Commented Mar 20, 2017 at 5:43
  • I simply inform them that nobody is obliged to answer their question, and leave it as that.
    – AStopher
    Commented Mar 20, 2017 at 8:33

4 Answers 4

77

You don't have to respond at all. But if you do, "No" is perfectly acceptable.

You might want to phrase it more politely than just "no", of course. The asker of that question has been given quite a few tips in the comments, and if they're not going to implement these themselves, they'll never learn. A good teacher doesn't spoon-feed, but instead encourages the student to try for themselves.

So - I'd say "I suggest you try this for yourself first. Programming is best learnt by doing. Good luck!" Or some variation of that. You could also tell them to come back if they get stuck, but I've learnt not to encourage that. If they really need help, they will come back anyway. If they don't - so much the better.

7
  • 29
    A more blunt way would be saying "StackOverflow is not a free coding service. We happily help you with problems in your code, but if you want it written for you I suggest to hire a programmer". This might not apply to every case, but usually when the OP doesn't show any effort and posts no code.
    – Bergi
    Commented Mar 17, 2017 at 13:22
  • 4
    How is just saying "no" impolite?
    – Braiam
    Commented Mar 17, 2017 at 13:35
  • 42
    @Braiam "More politely than" does not necessarily mean that "No" is impolite, similarly to how "faster than" does not necessarily mean that a "speeding bullet" is slow. Commented Mar 17, 2017 at 13:59
  • 12
    The question as I read it, was how to decline the request gracefully. Just "no" is blunt. If I chose the blunt way to respond (and sometimes that is the best way to get the message across) I'd go with @Bergi's wording. Commented Mar 17, 2017 at 15:31
  • 9
    @Braiam A single word response to any question, at least to me, is not polite. We're humans, not robots. A single word response is curt, blunt, or otherwise unfriendly. It's not incorrect, but if you're looking to be polite, be a little more verbose. Commented Mar 17, 2017 at 16:05
  • 3
    I can imagine the conversation taking place in person and a simple 'no' being put either very politely or very impolitely. Bereft of any other contextual cues, a simple written 'no' seems overly terse. Commented Mar 17, 2017 at 16:56
  • I strongly feel that in this particular situation, adding a comment at all is wrong. It leaves the post (question or answer) with N+2 comments instead of N+1, where it should have N (or even fewer). Commented May 6 at 18:11
17

I believe the best option is not to reply at all - neither comment nor update answer.

I only see two outcomes from answering such request - "you are complete @##$#." comments (flag-able, but will ruin your day if you are not used to it) or completely ignore your reply and continue nagging (at some point you'll get pissed off and reply something you regret later).

Thumper - If you can't say something nice, don't say nothing at all

5

First, try to avoid the situation

The most important principle here is that Stack Overflow is not a discussion forum, but a Q&A site. Almost everything else that can be said here follows from that.

In particular: as the moderator tooling so often reminds us, comments "are not for extended discussion". They aren't really for discussion at all, except to the minimum extent necessary for the current purpose. On Meta, that's a little wider than on the main site. But on the main site we need to be fairly strict about this. Comments clutter the page and detract from the site's goal of presenting high-quality answers immediately next to high-quality questions, without chit-chat.

As a rule, comments are subject to deletion at any time, without appeal; use them accordingly.

On questions

Here, the primary purpose of comments is to give feedback about the question-asking process. If you say anything at all about how to solve the problem, it should be as part of explaining why the question should be closed:

  • If there's a typo (or an idiosyncratic logical error), it's fine to point out where that is, as long as you're also helping to close the question by voting or flagging.

  • If it's a duplicate, you might want to explain preemptively why certain apparent differences between the current question and the duplicate don't actually matter.

  • If it's off-topic, every now and then there's a need to explain why.

But in any event, don't just offer an answer, full or partial, in the comments. The fact that it would only take a few lines of code to solve the problem is not a reason to override that. Similarly, don't offer or discuss general improvements to the code in itself - we don't do code review; there's a whole separate Code Review SE site for that. But do propose improvements to the example - which is to say: explain why the code shown falls short as a proper minimal reproducible example, and why we don't care whether the code shown reflects the actual project - we care whether it reflects the question being asked, as simply and directly as possible.

On answers

Similarly, comments on answers should be used to point out concrete issues with the information given, and only insofar as they can't be fixed by third-party editing (within policy, of course). They are especially not for the OP to ask follow-up questions, except insofar as they are requesting a clarification/additional details, etc. They are not a place for other people with the same problem to come and look for troubleshooting help, either. We don't do "help" anyway; but more importantly, a question is about one question. If there is any suitable non-duplicate question underlying the request, it is to be asked separately.

When someone gets the wrong idea

There is occasionally some value to trying to explain how the site works. Sometimes they listen; and every now and then, they even improve the way they use the site going forward. However, if someone is clearly just looking for someone to write code, engaging can really only make things worse. Please flag "can you write the code plz" type comments as "no longer needed" - as they were never "needed" (there is established precedent for this interpretation of the flag), and don't respond.

There is one important exception here. If you've posted an answer without code, and someone thinks that the answer would be better with code, and there's an at-all-convincing argument that the answer would be better with code, consider editing to include code. Since, again, this is not a discussion forum but a Q&A site, answers are about answering the question as well as possible; and the decision about whether to answer a question (or close it) is about the quality of the question and whether it meets standards. All of this is specifically not about whether the question is easy or how much the OP needs an answer or whether OP comes across as "lazy". It's about collaborating on a Q&A pair that helps everyone, by existing (and doesn't harm by existing, e.g. by cluttering search results, acting as "clickbait", wasting the reader's time etc.).

3
  • 2
    Re "within policy": That may or may not include *** not *** transcribing text from images Commented May 6 at 16:56
  • 1
    @PeterMortensen Indeed. Unfortunately, there are only so many links I can include there. ;) Commented May 6 at 18:09
  • Of all posts I've made on the site, I did not expect to have activity 7 years later. This answer is helpful both in action and in philosophy for SE. Thanks :) — you've got my vote.
    – Ally
    Commented May 9 at 7:42
-18

Users like that who add nothing to the site and are not willing to do anything to help themselves, are best just down voted. Looking at their other questions they are close to a question ban. But only down vote 1 other questions of their, as otherwise the automatic vote checking script will undo the good work of your down votes.

Also consider if any of their other questions should have a close vote for being unclear or too board....

5
  • 30
    Please don't encourage people to vote based on the user posting. The content is what should be voted on, regardless of the one doing the posting.
    – user4639281
    Commented Mar 18, 2017 at 20:42
  • 1
    Intentionally trying to get someone question banned is the opposite of what you should be trying to do. If you notice a pattern of bad questions, leave a comment on how they can improve. If they continue to post low quality questions and get question banned, it needs to be entirely because of their own actions, not yours. Commented Mar 20, 2017 at 0:48
  • 2
    @TinyGiant I totally agree that a question should be responded to on its own merits. However, if you suspect that the OP is a help vampire there's nothing wrong with looking at their other questions / comments to confirm that suspicion before deciding on how to respond to them. OTOH, I'm not saying that all questions from HVs deserve to be downvoted, but they often are, due to insufficient research, and generally deserve close-votes due to lack of MCVE.
    – PM 2Ring
    Commented Mar 20, 2017 at 5:47
  • @TinyGiant, if you look at his other questions, you will see there is no need to consider the user before deciding that most (maybe all) of them should be downvoted, as SO would be better without them. Commented Mar 20, 2017 at 10:55
  • 1
    @IanRingrose but you still don't purposefully go through them and downvote them... That's wrong in many ways and should really only be downvoted as we come across them :/
    – Ally
    Commented Mar 24, 2017 at 0:13

You must log in to answer this question.

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