22

This answer is good, but would be even better if it incorporated the top voted comment. The change is very small, only a couple of characters, but I'd also need to update the JSFiddle link with relevant code (or switch to a SO code snippet).

This change would optimise the answer, but the popular comment would no longer make sense - what's the best practice here? Edit or leave as-is?

7
  • 7
    I'm still not clear where the line is between improving an answer and putting words in someone's mouth but you shouldn't avoid editing improving an answer because of a comment. Just flag it as No Longer Needed. Good edits are more important than comments.
    – BSMP
    Mar 2, 2018 at 4:58
  • 12
    Including the snippet into the post is always a good thing. That said, I wouldn't replace the OP's code with the one in the comment, as that significantly changes how the answer renders. Maybe add it as another option.
    – Cerbrus
    Mar 2, 2018 at 8:01
  • 1
    @BSMP its a bit personal I guess. I don't add new information to answers, I only edit mistakes / readability issues. New information = new answer in my book.
    – Gimby
    Mar 2, 2018 at 11:50
  • 1
    The question "Why would I make a new answer when all I want to do is supplement an existing one" has some information about what kind of comments are appropriate to edit in and which are not.
    – Davy M
    Mar 2, 2018 at 17:08
  • 3
    JSFiddle's license is incompatible with Stack Overflow's. FYI.
    – user4639281
    Mar 2, 2018 at 22:23
  • 10
    How about if we stop saying "putting words in someone's mouth"? The review history is there to see who wrote what in every post and it's public.
    – Braiam
    Mar 3, 2018 at 21:33
  • 2
    If you do edit it in, make sure to give credit to the original comment, then the popular comment would make sense. "As mentioned by [comment author] in [this comment],....".
    – TheMaster
    Jul 18, 2022 at 9:30

1 Answer 1

-7

Being popular doesn't make a comment correct. If you "fix" an answer, then what's to stop anyone from doing it, and making all answers potentially useless? Or at least forcing future visitors to go through the edit history to find out if something went wrong?

If you don't like an answer, ignore it or add a comment, downvote it if you must, or do your own answer. The trail should be open and visible, and not hidden in the edit history.

1
  • 4
    "then what's to stop anyone from doing it" The same mechanism as for any edits? There are reviews for most people, and even with edit privileges the content owner and everyone following will be informed and may rollback edits. Even if you don't "fix" an answer – then what's to stop anyone from doing it? In the end these two things seem unrelated. Jul 18, 2022 at 11:16

You must log in to answer this question.

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