24

Working from some of the helpful comments on my question, I updated my question with my progress towards a solution that very closely mirrored an answer to come a few seconds later.

I admit to feeling proud to arrive to the same conclusions. But that edit was removed by another user because "it contained the answer".

Is this normal, or would I be justified in reverting this edit?

I wouldn't care, but employers look at this place and I had a half-joke I liked in that edit...

10
  • 50
    Answers should be posted as answers, not as edits to the question. This is to avoid confusion.
    – Bugs
    Jul 30, 2018 at 7:22
  • 1
    Depending on exactly what you want to add you may add a comment to the answer you used/adapted, or you may simply post your own answer, linking to the answer from which you have taken and clarify how you adapted it & why. Looking at your edit: you just replaced x with temp, so posting a new answer seems useless. Jul 30, 2018 at 8:44
  • 1
    Some of the highest voted 'answers' on my profile are those where I simply took the answer from the question put that information into an actual separate answer. It's make things so much clearer on this site and is greatly appreciated.
    – ouflak
    Jul 30, 2018 at 8:55
  • 2
    The edit was good. Remember we have an API here, which supplies question posts and answer posts as separate entities. From an engineering perspective, allowing people to post answers in questions is just as bad as allowing people to post questions in answers - it reduces the utility of the API and would be regarded as data that required extra cleaning.
    – halfer
    Jul 30, 2018 at 13:14
  • 4
    Also note that jokes and half-jokes are noise, so even if your progress toward an answer was kept, the half-joke would and should be removed anyway. I also don't see what it has to do with employers possibly reading a question you've posted.
    – TylerH
    Jul 30, 2018 at 14:06
  • 3
    @ouflak Ethically such answers should be marked Community Wiki.
    – TylerH
    Jul 31, 2018 at 16:02
  • 1
    @TylerH, That's interesting. I never really considered the 'ethics' of moving an answer out of the question and into its own proper answer. I just figured it was good house cleaning for what is fundamentally supposed to be a Q/A site.
    – ouflak
    Jul 31, 2018 at 16:18
  • 3
    @ouflak It's definitely good housecleaning and appreciated. The ethics part comes into play with the fact that a user is simply doing a bit of housecleaning by moving someone else's work from a question to an answer. Even though they may provide proper citation, it's still just moving someone else's work down on the screen by 400px; upvotes gained on a non-CW post then provide the poster with reputation and privileges that they did not actually earn, so to speak. Setting such posts as CW lets people vote on it without any concern for someone gaining reputation for this act.
    – TylerH
    Jul 31, 2018 at 19:37
  • 2
    @ouflak After my initial comment, I checked with the mods on this because I did not want to espouse a strong view on the matter if it was wrong or not enforced, and they said there is no hard and fast rule about it. However, this Meta post on the subject was found, and it does seem to agree with what I suggested.
    – TylerH
    Jul 31, 2018 at 19:39
  • 1
    The one thing I do appreciate is you coming here and asking if it is ok, rather than just reverting it as many do. Thank you.
    – user692942
    Aug 1, 2018 at 0:24

3 Answers 3

46

The types of edits that are useful in a questions are:

  • To clarify the question
  • To format the question
  • Correct grammar and spelling

The types of edits that don't belong in a question are:

  • Edits that show how the questioner arrived at a solution
  • Changes that change the original question (once it has an answer)
  • Writing things like "Solved"
  • Writing the word "Edit/ed" when making an edit, as it's irrelevant and can be seen in the revision history

This question discusses one possible consequence of the answer being edited into the question. What is the appropriate action when the answer to a question is added to the question itself?. If no one posts an answer, people browsing for solutions may skip the post thinking it has no answers.

Also see:

When should I edit posts?

  • to fix grammatical or spelling mistakes
  • to clarify the meaning of a post without changing it
  • to correct minor mistakes or add addendums / updates as the post ages
  • to add related resources or hyperlinks
15
  • 18
    It might help to explain the reasons behind this. Jul 30, 2018 at 10:49
  • 26
    Personally I find the "EDIT" section helpful to clearly separate new information that wasn't there when I or others wrote answers or comments. Without it, those comments/answers can seem confusing or misleading. Jul 31, 2018 at 11:55
  • 15
    @SteveBennett "Note: I edited this to add X and Y, after some answers where made." does that better than EDIT: because EDIT: encourages you to generate a question that is fragmented and historical; we want the primary document to be readable as-is in the present. Having notes saying what changed is sometimes useful, but shouldn't be the primary structure of the document. The exact historical details are available to anyone who really needs them, but the primary use of a Q&A is someone googling the question a year later and looking for an answer. Jul 31, 2018 at 13:41
  • 1
    @Dukeling They seem pretty self-explanatory to me. Though I suppose it's better to be thorough than ambiguous. Jul 31, 2018 at 15:55
  • @Dukeling I could, but I thought it was a simple explanation. I can add some links, would that help?
    – user3956566
    Jul 31, 2018 at 15:59
  • 2
    @LightnessRacesinOrbit Since users do all of the things mentioned here as not belonging in a question, it's probably not that self-explanatory. Jul 31, 2018 at 16:01
  • @YvetteColomb Links could work. I imagine we have Meta posts dedicated to discussing each of the points you mentioned (or at least the last 3). Jul 31, 2018 at 16:03
  • 1
    @Dukeling I suppose everything's relative. Though I submit that people do things they obviously shouldn't all the time, and telling them why they shouldn't is not likely to change things :P There's also a "ah, now you've pointed it out it's obvious" factor, potentially. You may not have originally realised that the supermarket closes at 4pm on a Sunday, but once you find out you probably don't need to bother asking why that's the case. Jul 31, 2018 at 16:13
  • @Dukeling what do you think of the edit?
    – user3956566
    Jul 31, 2018 at 16:35
  • @Yakk-AdamNevraumont Ok, I guess I understand your position, it just doesn't particularly resonate with me. I'm often more motivated by solving the specific problems of specific people than vague "build a Q&A database" goals. And it's my time I'm volunteering, so I'm only willing to be dictated to to a certain extent. Aug 1, 2018 at 0:07
  • 1
    @SteveBennett in which case, Stack Overflow isn't a good fit for you. You're welcome to spend your time elsewhere.
    – user692942
    Aug 1, 2018 at 0:13
  • 3
    No, because that's not how volunteer organisations work. You don't tell someone to leave because of one small area of disagreement. And especially not when they've been here longer, and have 4 times the rep :) Aug 1, 2018 at 2:23
  • 2
    @Lankymart I have to agree with Steve Bennett on that, not a helpful comment. Why did you post that?
    – user3956566
    Aug 1, 2018 at 2:25
  • @YvetteColomb their comment imo isn’t helpful either. There are too many who take the “I'm volunteering my time so I do what I like” approach. It’s been stated time and time again what Stack Overflow is, to butt against that because they feel privileged struck a nerve.
    – user692942
    Aug 1, 2018 at 2:30
  • 2
    @Lankymart thanks for explaining that. Yeh I understand that. The site can be intense at times, so it's pretty easy to react with a knee jerk response. I think Steve was ok in this instance. He's just stating what he prefers in terms of questions and that's ok too, as does Yakk-Adam.
    – user3956566
    Aug 1, 2018 at 2:34
8

I updated my question with my progress towards a solution

I believe it's totally fine to edit progress into question. Make sure the question is still the same and don't use anti-patterns (though I disagree with it, that's another disccusion).

The point is this: all of those findings should be failed attempts. So that you still have the question to be answered.

As soon as you find something which works for you, it's the answer. Just post it. It doesn't prevent others from posting a better answer if there is any.

3
  • 2
    Stackoverflow isn't Jeopardy. Answers should be posted in the Answer box, not in the question box.
    – Brian
    Jul 31, 2018 at 15:55
  • 6
    @Brian Yes, that's what Sinatr's answer says.
    – TylerH
    Jul 31, 2018 at 16:14
  • 1
    Good point, include failed attempts, not the final solution
    – user3956566
    Jul 31, 2018 at 16:54
1

It's fine to include a partial solution when you initially post your question, or in response to "what have you tried?" comments. However, you certainly shouldn't make any substantial edits to your questions once relevant answers start rolling in. Sometimes it makes sense to add info to the question when you realise that answerers are misinterpreting what the code needs to do, or what the data looks like, but ideally that should happen before any answers are submitted. The key point here is that you shouldn't make major changes to your question that invalidate those existing answers. If you do need to make major changes then the best thing to do is to realise that you accidentally asked the wrong question, and to start again with a fresh question, possibly linking it to the old one.

You definitely should not add material to your question that was written in the answers. Eg, "Joe said to use this code, but when I tried it on my actual data, I got this wrong result". That doesn't work well with the Stack Exchange Q & A format. In that format one person submits a question, and (hopefully :)) people submit answers in response to it. It's not designed for an interactive back-and-forth tutorial session. If you need that sort of thing it may be possible to do that to some extent in a chat room.

However, if you want to grab information from one or more of the submitted answers and combine that into your own solution you are certainly welcome to do that, but you need to post it in the Answers section, not add it to the question. (And of course your answer should mention the names of the people whose code you've copied). If you write some code that way which is only a partial solution that doesn't do what you really want, then you shouldn't post it as an answer. Instead, post it in a follow-up question, linking back to the original question.

You must log in to answer this question.

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