I think, according to the guidelines, if the question has turned out to be "popular", then it is possible to make this into a "community wiki" type of question.
It is possible to make the answer attributed to more than one contributor, and in the case actually posted, I think it qualified for this to be done.
That way you simply show the "answer" as contributed by several posters (all 8 or whatever of them) and doesn't "offend" any of them that their answer was "deleted" (when it was genuinely posted within a minute of the other one).
Site integrity maintained, answer well-established, nobody offended. What could possibly go wrong?
Well ok, so if the question isn't popular and it happens? In particular a "new" question? Well maybe after a day or two the answers can still be combined by a mod. I have no idea what happens to reputation if there are new upvotes but the site owners can decide about rep. (I would suggest that, once a post is combined, upvotes give 1 to each contributor if there are 6 or more of them, 2 if there are 4 or 5, 3 if there are 3, 5 each if there are 2 of them).
All this is still better than keeping one answer and deleting the other(s).
This should be done based on flags. You can't expect the moderators to run around looking for these.
By the way, if it isn't possible to combine answers in general now, it should be made possible then done.
To summarize in general:
- If multiple posters have contributed the same answer at the same time, merge them into one answer with all of these posters jointly credited. This both maintains the integrity of the site, and the history, i.e. that the answer was submitted simultaneously by all these posters not just one of them, and is less likely to cause offense.
Default
andUTF8
). Or at least explain the solution, instead of only typing one line of code. For the question you linked, somebody did exactly that more than 4 years later, and got a good number of upvotes.