I witnessed today some behaviour that I find questionable from a fellow answerer. I'm wondering if it's an acceptable behaviour by the standards of the community. Here's what happened:
Some user answered to a question with some correct but perfectible code. Three months later, I added a better answer. Then the first answerer edited his answer to replace his own code with the better code I provided in my answer, save for some formatting and variable names. My answer being months fresher than his, it has less upvotes and thus appears below. It now looks like I was the one that ripped the answer from the other. No attribution is given in the answer.
None of the answers is an original, clever trick to do some hard thing but simple documentation, 3-lines code sample and advice on best practices.