2

My edit was rejected as destructive because the answer led me to the correct implementation and I tried to edit in the correct version to give the original answerer the credit for leading me there. Should I instead of editing the sort-of right answer, just add in my answer that more completely answers the question and accept that?

The edit in question: https://stackoverflow.com/review/suggested-edits/6245153

4
  • The edit doesn't look as though it has been rejected yet. Though now you've brought it to attention of meta it may be. I'd tend to leave those for the post author to consider if they are online. Commented Nov 16, 2014 at 17:30
  • I'm unfamiliar with how many rejections does it take to actually reject an edit.
    – C Bauer
    Commented Nov 16, 2014 at 17:33
  • The sad part is the guy is completely right, the thing he called a factory is nearly word for word what the mapper in my suggested edit became, but the one change (builderkey) dramatically changes the way the code works.
    – C Bauer
    Commented Nov 16, 2014 at 17:34
  • 2
    Takes 3 votes either way unless the post author unilaterally accepts/rejects or someone forces the issue by choosing "accept and edit" or "reject and edit" Commented Nov 16, 2014 at 17:34

1 Answer 1

5

You are changing a lot of code, and those edits get rejected. Actually, you have an entirely different piece of code here. You can post that code as a new answer, and if the other answer helped you, you can always include credits in your answer and upvote the other answer.

You can also post a comment to the answer, to share your improvements if your code isn't too different from the other code.

4
  • 1
    I just feel bad since the only real difference between the two answers is that the answerer didn't understand it was a property of the item rather than the itemkey itself that determined which builder to map to.
    – C Bauer
    Commented Nov 16, 2014 at 17:26
  • @CBauer I expanded my answer. You can also post a comment to the answer.
    – ProgramFOX
    Commented Nov 16, 2014 at 17:29
  • Well the problem becomes that it's hard to say "oh, I'm keying onto an item property so that I don't create a separate builder for every itemkey in the system (millions)" in a meaningful way that the OP could rewrite his code. That's why I made an edit to encapsulate the scenario.
    – C Bauer
    Commented Nov 16, 2014 at 17:30
  • @CBauer You can put the updated code on Pastebin or GitHub Gist for example. But a code edit requires OP agreement so other users reject them.
    – ProgramFOX
    Commented Nov 16, 2014 at 17:35

You must log in to answer this question.

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