5

I could not find any getMoney method in your class definition that takes a parameter. Are you sure you did not want to use machine.setMoney(input) instead?1 to this question?2

I mean that is a comment. It is a statement then a question requesting more information.

How is this a valid attempt to answer and why should it not be a comment?

1I linked to the original because that is what I want feedback on. I think Drew had good intentions trying to help make it more of an answer with his edit, but personally I still think it is a comment even with his edit.

2Ignore the fact that the question is extremely poor and unclear, that is not relevant or the point, I just added this link because I know someone was going to ask for it.

23
  • 5
    Looking at the 2nd revision it does seem to be an answer. Maybe it's an answer of the typo variety or just incorrect, but it's an answer nonetheless.
    – ryanyuyu
    Commented Feb 26, 2016 at 15:07
  • 1
    Hardly worth worrying about. The question is the real problem, it can only attract answers like this. Take care of the question and the bad answer problem solves itself.
    – Cody Gray Mod
    Commented Feb 26, 2016 at 15:24
  • 1
    @ryanyuyu - you did not explain why a statement followed by a question asking for more information qualifies as an answer and should not have been a comment asking for more information, you just state that it is one.
    – user177800
    Commented Feb 26, 2016 at 15:28
  • @CodyGray - it matters in the round because I am trying to get a clear explination of what qualifies as a an answer and WHY so I can link to when people ask if things that are reasonably considered NAA are not NAA easily.
    – user177800
    Commented Feb 26, 2016 at 15:29
  • 1
    @JarrodRoberson based on the small transformation from question to potential solution, the ideas present in question form lead directly to an answer. Therefore, it's a (terribly unclear and mis-formatted) answer. In a nutshell, it contained enough answer-y content and just needed a facelift to make it more obvious.
    – ryanyuyu
    Commented Feb 26, 2016 at 15:29
  • Did you flag this as NAA and the flag was declined? Or are you asking in general? I don't see any flags raised from that answer.
    – Tunaki
    Commented Feb 26, 2016 at 15:29
  • Hmm, I suppose the epic apple taxonomy is not sufficiently clear. It wouldn't be the first time. I don't think you're going to get a programmer's definition of what is and is not an answer. If we could define it that precisely, we'd just teach a machine to reject them.
    – Cody Gray Mod
    Commented Feb 26, 2016 at 15:36
  • @ryanyuyu - so it is almost an answer?
    – user177800
    Commented Feb 26, 2016 at 15:36
  • @ryanyuyu - I posted a link to the original version for a reason, that is what I am looking for guidance on, not the attempt to fix it, the attempt to fix it kind of proves my point.
    – user177800
    Commented Feb 26, 2016 at 15:41
  • 1
    related meta.stackoverflow.com/q/315135/792066
    – Braiam
    Commented Feb 26, 2016 at 15:54
  • 2
    Sorry I stole your example by casting that final delete vote. Here's another one if you need it.
    – Cody Gray Mod
    Commented Feb 26, 2016 at 16:19
  • 1
    somewhat related: Should we avoid rhetorical questions in answers?
    – gnat
    Commented Feb 26, 2016 at 16:22
  • 2
    It was an attempt at an answer. I am plowing through the New Answers to Old Questions screen on 10k Tools often not looking at the Question itself but rather for flagging for NAA or a cleanup with an edit. There are other motivations. Such as dispelling the myth that no post is good enough. Why, because a lot of the attempts at post clean up ironically occur by the people in SOCVR where I sit.
    – Drew
    Commented Feb 26, 2016 at 16:55
  • 2
    As for NAA, well, some of us are at above 99% success rate. And I would most likely fail with that flag. By the way, TinyGiant and gunner I believe it was wrote a great userscript (Tampermonkey / Greasemonkey) for what is now referred to as that NATO screen. Ask them about it in SOCVR
    – Drew
    Commented Feb 26, 2016 at 17:04
  • 1
    Cody Gray's example is equivalent to the second revision of the answer you linked. To see this, perform the reverse transformation on his example: "Are you sure the . is not extra in contact_no?"
    – jscs
    Commented Feb 26, 2016 at 19:27

2 Answers 2

13

Does it attempt to answer the question in any way, even if it has a question mark after it?

(hint: the above text is an answer)


Many people confuse "This is not an answer" with "This answer is wrong, incomplete, or doesn't answer the question that was asked." To alleviate the confusion, rather than focusing on "not an answer," I suggest focusing on what an answer is not:

  • A commercial advertisement or promotion
  • A new Stack Overflow question
  • Attempted communication with another user
  • Clarifications to the question
  • Gibberish

When you are evaluating an answer for the "Not an Answer" flag, it is helpful to evaluate the answer in isolation. If it's an answer, it will still be an answer without the question. This technique works because this is how moderators see these answers in the queue.

Finally, if there is any doubt whatsoever about using a Not an Answer flag, cast a custom flag instead, and answer the following question:

  • Why is this answer harmful enough to the site that it warrants forcible removal by a moderator?

Regarding "convert to comment," I generally only do that when I see content that clearly shouldn't be in an answer (like a bare link to a blog post), but which would cause information loss if I just deleted it. If you want an answer converted to a comment, cast a custom flag and put "Convert to comment" in the description.

5
  • 1
    Thanks for this guidance, I agree with this it is actionable. What I linked to is a statement and a question asking for more information. Follow your guidance and remove the statement and you are left with a question asking for more information. Remove the question and you are left with a statement that is not an answer. That qualifies it as a comment to me.
    – user177800
    Commented Feb 26, 2016 at 16:06
  • 4
    When would you convert an answer to a comment? Also, what is a comment?
    – Tunaki
    Commented Feb 26, 2016 at 16:06
  • 2
    @JarrodRoberson: I'll grant you that the example you provided could go either way. Sometimes I will look at the question to see if the answer has any bearing at all on the specific question; your example does. If I had seen that particular post in the queue, I probably would have marked the flag helpful, but left the answer there.
    – Robert Harvey Mod
    Commented Feb 26, 2016 at 16:07
  • 2
    @Tunaki - I see what you did there! :-)
    – user177800
    Commented Feb 26, 2016 at 16:07
  • 6
    @Tunaki - When an answer is only asking for clarification or additional information, when it is intended as a follow-on to another answer, or when it is only commenting on a side issue or another comment. Short answers that provide potential solutions are still answers. Rhetorical questions are usually still answers. A check I use: if a question is present in the answer, does it need a response from the original asker? In the above-linked answer, no reply to the question posed in the answer is necessary or anticipated.
    – Brad Larson Mod
    Commented Feb 26, 2016 at 16:30
6

The question is a little unclear, but the title shows what the asker's problem is: "In my main method, there's a error in out.println(machine.getMoney(input));"

There is indeed no getMoney method in their code that takes a parameter, so it is natural that their compiler complains about this.
(Granted that there are a few more points that I expect their compiler to complain about...)

The answer could do with a little more explanation. The second part of the answer, suggesting they use setMoney, seems to be wrong in this answer (as they discuss in comments). But a partially wrong answer is still an answer.

Best thing would be if the answerer edited it, and provided a little more detail. But as far as I can see, it is an answer, not a comment.

1
  • 1
    Exactly my reasoning for declining, it looks like an attempted answer albeit wrong and not particularly great writing style. A voting problem, not a moderator problem (which incidentally hadn't gotten what I considered to be appropriate votes). Commented Feb 26, 2016 at 22:44

You must log in to answer this question.