-5

I just saw this question here, and my answer and another person's are both correct. If I were the OP, I wouldn't know which to accept. How should we accept answers in this situation?

24
  • 10
    Just because both answers are correct doesn't make them "of equal quality". Acceptance is entirely up to OP's discretion, and there is no requirement to accept an answer at all. See e.g. meta.stackoverflow.com/questions/354584/…. Aug 9, 2022 at 7:12
  • 2
    FWIW, I think your answer is better written (I'm not sure offhand which offers the better solution). You include some meaningful explanation and a relevant documentation link. Aug 9, 2022 at 7:25
  • 2
    Both answers are correct but not equally helpful. The solution with np.hstack from np.dstacks is not trivially applicable (and 2x slower) for the actual use case (grid of 16x16 chunks of 3D arrays) mentioned. Aug 9, 2022 at 12:09
  • 4
    If there is absolutely no other consideration distinguishing merit, reward the person with lower reputation.
    – Nick Cox
    Aug 9, 2022 at 12:35
  • 7
    @NickCox Askers should not accept an answer based on the answer authors' reputation; please don't listen to such suggestions. Answers should be accepted based on which solution the asker ended up using or most led the asker to their desired goal, or if a theoretical question which solution provided the best (in the author's opinion) explanation or code.
    – TylerH
    Aug 9, 2022 at 13:38
  • 3
    There is emphasis almost everywhere on the OP's discretion in accepting an answer and a recommendation that they reward merit. It's too rule-obsessed to insist that other criteria might not apply and a tad discourteous to urge "don't listen" to other suggestions. To repeat, if there is no perception of differing merit, then go for the person most in need of, and most likely to appreciate, the small boost in reputation. I have 33K and am really delighted if good people in my small corner of SO with more like 300 or 3K can get the extra reputation for their work if their answer is as good.
    – Nick Cox
    Aug 9, 2022 at 14:52
  • 3
    @TylerH in essence it's bookkeeping, not a reward system... I can't believe that we're here again to be honest. This is really basic stuff.
    – Gimby
    Aug 11, 2022 at 8:50
  • 4
    @NickCox Nobody "needs" reputation; that's not what it's for. You're not doling out charity here. The only reason there are people involved with writing answers on SO at all is because there is no AI sufficiently advanced to ask and answer all questions. It's not about us, it's about the repository of Q&A. Basing your actions as a user on who wrote a post, no matter how noble you imagine it, is wrong and antithetical to the ethos of the site. So yes, absolutely "don't listen" to such suggestions (or make them), please.
    – TylerH
    Aug 11, 2022 at 13:41
  • 2
    @NickCox No one "deserves" to have any privileges (privileges, not rights) here. That's not how the site works.This is not patronizing or hectoring, I am simply explaining that you are mistaken. And who said anything about thought crimes? I don't care what you think, only what you do, especially when it is telling other people to do the wrong thing. Yes, tossing a coin would be better. If two answers provide the exact same solution with the exact same explanation (rather unlikely) and you use one of them, pick one at random, or if you must discern, pick the one that was posted first.
    – TylerH
    Aug 11, 2022 at 16:04
  • 3
    "I too have experience and views about SO and really don’t need an explanation that people are needed to make it work." I don't take anything for granted here; when a user suggests we start voting based on the author rather than based on the content, I have to assume they don't know how the site works. Someone with experience on SO should know that we vote based on content, not based on the person.
    – TylerH
    Aug 11, 2022 at 16:11
  • 2
    We’ve exchanged views. The idea that random choice beats other criteria is ludicrous in my view. I will let others judge on tone and logic.
    – Nick Cox
    Aug 11, 2022 at 16:52
  • 3
    But why, @NickCox? Why not choose the perceived gender of the author as the tie-breaker? Or their geographical location? Or some other arbitrary criterion? Because that's a slippery slope and implies a very serious misunderstanding of the goals of this site. The goal of this site is not to earn reputation. That's simply not a good standard. Aug 11, 2022 at 22:56
  • 2
    @Cody Gray I don't think that the goal of this site is to earn reputation. How do you infer that? Ir is disturbing how hostile some can be over a small suggestion on what to do when answers are of equal merit. The assertion that I "don't know how the site works" was uncalled for. By all means mock words you don't like such as "deserve" but -- subject to editing, voting and moderation -- there is still some freedom of thought here. I vote up and down depending on what I think deserves it and I don't mind if at the margin some OPs show a little caprice over which answer is accepted.
    – Nick Cox
    Aug 11, 2022 at 23:46
  • 2
    The title of this thread remains "What should we do when two answers are of equal quality?" and so just repeating the advice to choose the better answer is not addressing the question. The advice to anyone who uses another criterion as a tie-breaker is to keep quiet about their reason, as someone may be watching and wanting to chastise their incorrect attitude.
    – Nick Cox
    Aug 13, 2022 at 0:07
  • 2
    @DialFrost Not for me to disapprove of such choices. That's my point too: the OP has discretion,
    – Nick Cox
    Aug 13, 2022 at 9:46

1 Answer 1

-4

I would accept your answer if I was the OP of the question.

It is simpler since it only relies on one method call, whereas the other one has three calls.

It also has the most upvotes.

But acceptance is up to the OP. He could accept either one or none at all. On Stack Overflow it is considered bad practice to try to influence OP to accept any answer.

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