150
votes
Accepted
For an iterative review, is it okay to edit my own question to include revised code?
You have several options for follow-ups:
Accepting an answer
If one of the answers gives you good advice with clear directions for improving your code, just accept the best answer and upvote any ...
Community wiki
24
votes
Accepted
How should we deal with askers fixing off-topic questions when an answer has been posted?
Answers to off-topic questions are already invalid
One way to look at this is to say that if a question is invalid, it should be closed and not answered. Answering an invalid question sends exactly ...
15
votes
Accepted
Old messy questions
We should just leave them alone
There is no good solution to these mixed-bag questions with code in varying states. If there was an easy solution, we would have done it already.
As it stands, my ...
13
votes
What should I do if someone continues to edit the question after being told to stop?
Flagging it for moderator attention was justified. Thanks for your vigilance and for doing your part to keep the review process fair.
I've reminded the user of the rule and closed the question as "...
12
votes
What should I do if someone continues to edit the question after being told to stop?
As @200_success has mentioned, flagging was justified. Had you reverted again, then the OP may have done the same, starting a rollback war. Never try to engage in a rollback war. If one ever occurs,...

JamalMod
- 34.7k
11
votes
How should we deal with askers fixing off-topic questions when an answer has been posted?
I used to place a comment on an answer of an off-topic question, stating that the answerer should refuse to answer off topic questions. Sometimes this went well and the answerer removed his/her answer,...
9
votes
Accepted
Changed question code - what to do?
It somewhat pains me to do this, but as it stands, the question needs to be rolled back. So that's also what I did.
As MartinR observed in the comments to your inquiry here, answers to off-topic ...
9
votes
Accepted
Rollback reason
Lock the question as soon as it is answered. Sound a bit too drastic.
Locking is a moderator tool with good reason. For one the lock mechanism implemented by SE currently only allows completely ...
8
votes
Preventing the ability to re-open off-topic questions by explaining how it's broken in an answer
Hypothetical situation:
OP asks a question involving broken code.
Question starts collecting comments asking to clarify or explaining what's wrong with the question; down and close votes rain, too.
...
7
votes
Accepted
Can an OP add missing keyword(s) to code?
No the question should stay as it is,
because not only would this edit invalidate two answers (first, second) but I think we would send the wrong signals as well. It would look like it could be ...
6
votes
Accepted
What do we do with out-of-sync questions?
A rollback is a dangerous option and should always be considered carefully. And yes, I've screwed this up myself at least once, so don't beat-up yourself too much about it either.
The entire point of ...

MastMod
- 12.6k
6
votes
Accepted
Code in a question was changed after getting suggestions via answers and/or comments?
Modifying the question to incorporate suggestions from answers is called answer-invalidation. Doing that on any Stack Exchange site is considered to be an abuse of editing privileges.
In addition, ...
6
votes
Request to re-open "Find out relation between Devices…" question
First I'd like to apologies that you've been put in this horrible situation.
Whilst your code was off-topic to start off with, you've tried many ways to get the question to be on-topic.
Mostly to be ...
PeilonrayzMod
- 41.6k
5
votes
Accepted
Should we allow answer invalidation for otherwise off-topic questions?
Let me quote the answer to which @Mast posted a link in his answer:
Answers to off-topic questions are already invalid
One way to look at this is to say that if a question is invalid, it
...
5
votes
Accepted
Preventing the ability to re-open off-topic questions by explaining how it's broken in an answer
The first consideration is, is the code broken in a way that makes it off-topic? It's only off-topic if the question asks for help to fix a bug (or if it looks like the author is unfairly feigning ...
5
votes
Accepted
Is it okay to edit part(s) of code not yet reviewed?
The one time to revise code after receiving an answer is if advice is given in a comment. Unlike answers, comments are temporary and do not have to remain.
If you find something yourself and would ...

JamalMod
- 34.7k
4
votes
Accepted
About answer-invalidating edits
Code must not be edited after an answer has been posted
Code must not be edited after an answer has been posted even if the answer is still valid after edit.
Help Center states
However, any aspect of ...
3
votes
For an iterative review, is it okay to edit my own question to include revised code?
I came here because of
The moderators have had a discussion, and we are proposing new guidelines for posting follow-up code. Specifically, we would like to end the practice of letting the OP append ...
3
votes
Request to re-open "Find out relation between Devices…" question
It happens regularly that the code in the post is broken (or otherwise not ready for review), but the problem is too complex to explain or demonstrate in the limited space afforded by a comment, and ...
2
votes
Request to re-open "Find out relation between Devices…" question
The code in question, although you state it is your code and you maintain it and you have added enough context, is too much obfuscated.
In its current form it just looks too much like example code ...
1
vote
Can an OP add missing keyword(s) to code?
Why do you need to come to meta?
In this case both parties involved are ok with it. Let them edit their posts however they want.
Surely we don't need a rule that says:
If an answerer agrees and ...
PeilonrayzMod
- 41.6k
1
vote
Should we allow answer invalidation for otherwise off-topic questions?
Note: By time of posting of this meta question, the question in question wasn't closed yet. It is now.
Should we evaluate it on a case by case basis?
To the best of my knowledge, that's how it ...

MastMod
- 12.6k
1
vote
Preventing the ability to re-open off-topic questions by explaining how it's broken in an answer
Here's a quick history of what happened on this question. The OP wrote:
but for some reasons I don't know, although my heap sort program works well, I still got the runtime rejection from Leetcode.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
answer-invalidation × 14discussion × 13
specific-question × 6
site-policy × 5
editing × 4
faq × 2
scope × 1
feature-request × 1
answers × 1
specific-answer × 1
iterative-review × 1
moderation × 1
vote-to-reopen × 1