me how's answer makes an important distinction between two different answers: the best answer and the accepted answer.
Only the question-asker is guaranteed to know EXACTLY what the problem is, and he is the only one with the complete source of the original problem. He will presumably be the only one actually trying out the various answers offered.
And what's more, he came to Stack Overflow with a specific problem in mind. Between the time he posts his question and the time he accepts an answer, his problem exists. When his problem ceases to exists, presumably because of a posted answer, he should mark that answer as accepted.
The only exception might be when the problem was only able to be solved as an amalgamation of multiple answers, and what the community opinion of what best-practice might be in this scenario is probably best suited for its own meta question (which has probably already been asked).
And this answer that gets accepted? The community may not even deem it the best answer.
Q. I'm using <programming language A> and need to accomplish <task B>. I'm running into <problem C>. How can I fix this?
A1. If you use <programming language B> instead, it might be much easier to complete <task B>.
A2. Your error is in line 42. You need to change foo to bar.
I would certainly hope the community upvotes and selects A2
as the best answer, but if I asked the question and used A1
as my solution, is it not right for me to mark A1
as accepted?
The accepted answer can only be one thing: the answer that solved the problem that prompted me to post the question in the first place.