A key component to Stack Overflow is that questions have answers. They have detailed answers (as described in the tour).
This site is all about getting answers. It's not a discussion forum. There's no chit-chat. Just questions ... and answers
In How do I write a good answer? from the Help center:
Answer the question
Read the question carefully. What, specifically, is the question asking for? Make sure your answer provides that – or a viable alternative. The answer can be “don’t do that”, but it should also include “try this instead”. Any answer that gets the asker going in the right direction is helpful, but do try to mention any limitations, assumptions or simplifications in your answer. Brevity is acceptable, but fuller explanations are better.
Note the bit "The answer can be “don’t do that”, but it should also include “try this instead”."
A comment that is "You have a massive SQL injection in your post" is not an answer. It may "address the question", but it is not answering the problem of "how to do ${something}".
Just because a post is related to the question does not mean it is an answer. Having posts that are addressing the question show up as answers increase the amount of noise in the system and make it that much hard to actually find the answer in the list of 'answers'.
This is the key component that separates Stack Overflow from forums and discussion sites. You go to a question that is "how do I do XYZ" and all of the answers should be about how to do XYZ. If the question is about understanding some concept, all of the answers should be about understanding the concept (not how to implement it with some tool).
By suggesting that posts that are "addressing the question" constitute answers, Stack Overflow reduces its utility, makes it less appealing for the experts, and that much more difficult to find answers. The combination of these things makes it less useful as a brand and less useful as a site to go to. Sure, the OP gets a bit more information, but as has been mentioned time and time again, the site is tangentially designed for the OP - it's really for the next hundred people who have the same question and find the question and answers.
So...
- An answer must answer the question.
- Answers may continue to address other parts of the question, if they also answer it.
- Comments may address the question.
- A post that doesn't answer the question increases the noise on the site.
Consider the comment:
@phpUser SQL has significant security holes and is open to SQL injection. You should fix it using a prepared statement.
If this is an acceptable answer rather than a comment on a post that contains such a security hole... consider the situation where phpUser wrote an answer instead and this was some code for some other question.
This shows that such a comment is an attempt to communicate with another user on another post. It is not answering the question. It may happen that the user is someone who posted the question, or posted an answer. It should not be an answer.
Posts that appear to address the question but don't answer the question are not answers. They are instead posts that fall into the category of "Attempts to communicate with another user" which is a valid reason to flag as not an answer (NAA) and delete or convert to a comment.
If the above comment is a valid answer, I've got a lot of php questions to go answer. If this would be frowned upon by the mods and would be receiving NAA flags from the community, then one should consider if posts that "address the question" are indeed answers.
The help center provides guidance as to why answers can be deleted in Why and how are some answers deleted?:
Answers that do not fundamentally answer the question may be removed. This includes answers that are:
- commentary on the question or other answers
- asking another, different question
- “thanks!” or “me too!” responses
- exact duplicates of other answers
- barely more than a link to an external site
- not even a partial answer to the actual question
Please note that the emphasis is in the original. Answers that do not fundamentally answer the question may be removed. This is the wording. It is not "answers that don't address the question may be removed" - they must answer the question or they may be removed.
Related discussions: