Checking the low quality queue on Stack Overflow, some code-only answers came up. I visited the questions in particular (I normally do that before deciding if I should skip or take action) and found that, although the answers didn't really fix the problem, they (or at least some of them) could be used as a guide on how to fix it.
After reading different posts on Meta (one, two, three, four, five), I decided to leave a comment to the users, stating that an explanation of how/why that code worked would be ideal. But my comments were met with "the code speaks for itself" or "everyone knows this." In one particular case, I downvoted the answer, and when I tried to explain why I considered the code didn't speak for itself, I was told (by the user) that I was harassing and making him/her feel unwelcome to the site.
I am new to reviewing and don't want to do things wrong (and even less being rude/offensive to other users). Is it incorrect to add comments asking for an explanation of how/why the code works in code-only answers?
If I know how/why the code works and think that it could be improved by explaining it, should I directly edit the answer and add the explanation myself? Or should I write a comment and leave it for the user to do it? (After all, they are the authors.)
As mentioned, the few people, to whom I left such a comment, didn't agree with it and/or criticized me for writing it. So one last question related to how to proceed in cases in which the author considers the code is enough and doesn't modify the answer: If I think that the code-only answer is not enough or that it doesn't fully answer the question, and the user replied negatively to update its content, should I consider it unsalvageable and flag it as very low quality?