2
\$\begingroup\$

Today, I saw a question that asked to review the OP's code. On reading the answers, I found that they repeat or just explain the things seen in the code and say:

You can use xxx instead of yyy

when the OP's code clearly uses xxx. On closer inspection, I found out that the OP had modified the code taking the suggestions given into consideration.

Is this acceptable?

\$\endgroup\$
4
  • \$\begingroup\$ Nope. That invalidates the answers and should be rollbacked. \$\endgroup\$ Commented Jun 20, 2015 at 9:48
  • \$\begingroup\$ I can't seem to find the 'rollback' button. I was talking about this question. I posted this because another user told that it need not be rollbacked \$\endgroup\$ Commented Jun 20, 2015 at 9:55
  • 1
    \$\begingroup\$ For comments it is acceptable, for answers it is not. \$\endgroup\$ Commented Jun 20, 2015 at 10:24
  • \$\begingroup\$ Possible duplicate: For an iterative review, is it okay to edit my own question to include revised code? \$\endgroup\$ Commented Jun 20, 2015 at 16:46

1 Answer 1

6
\$\begingroup\$

Modifying the question to incorporate suggestions from answers is called . Doing that on any Stack Exchange site is considered to be an abuse of editing privileges.

In addition, Code Review also forbids appending improved versions of the code to the question, to prevent confusion about what is being asked.

Our standard response to these incidents is to roll back to a previous version and inform the original poster that such edits are forbidden. I have done that on this question. Thank you for raising the issue.

\$\endgroup\$
2
  • \$\begingroup\$ Ok. Thanks. But I can't seem to find the rollback button. Does it appear once I have sufficient rep? \$\endgroup\$ Commented Jun 20, 2015 at 11:22
  • \$\begingroup\$ Click on "edited n hours ago" to view the history. When you have earned editing privileges, you will see the option to rollback to any previous version. \$\endgroup\$ Commented Jun 20, 2015 at 11:29

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.