4

What should we do when a suggested edit to an answer adds a working demo snippet? Here is an example edit.

Intellectually, it adds nothing to the answer.

Plus, we can't go around converting Fiddles to Stack Snippets which would be similar, so I'm leaning toward discouraging this sort of behavior. Official answer?

6
  • Does it change the meaning of the answer, or does it just make it significantly better by adding a working demo? How would you feel if an accurate screenshot was added?
    – nhgrif
    May 8, 2015 at 11:24
  • I though about if someone did that with one of my own answers. Since it's not a wiki answer, I'd prefer other people not expanding my answer, especially if it stands on it's own. I'm looking for an official answer from experienced Meta users.
    – Drakes
    May 8, 2015 at 11:32
  • I would reject the edit you've linked to. Seems like the suggested edit you've shown has got rejected.
    – Spikatrix
    May 8, 2015 at 11:36
  • 1
    Can you expand on why you don't want SO answer quality maximized? Should this user have posted the working snippet of your code as their own answer?
    – nhgrif
    May 8, 2015 at 11:36
  • 4
    Well, intellectually they added nothing to the answer, and for the same reason we can't go around willy-nilly converting Fiddles to Stack Snippets, I'm leaning toward discouraging this sort of behavior.
    – Drakes
    May 8, 2015 at 11:42
  • That reference should be put it your question.
    – nhgrif
    May 8, 2015 at 11:44

1 Answer 1

3

Quotes from the Stack Overflow Tour

With your help, we're working together to build a library of detailed answers to every question about programming.

Improve posts by editing or commenting

Our goal is to have the best answers to every question, so if you see questions or answers that can be improved, you can edit them.

I'd argue that the edit improves the quality of the post by having the code snippet in the answer.

Code snippets weren't available when the answer was originally posted (2012), so that would have been impossible to do at the time.

For reference, the answer as posted without a demo:


Brendan's answer is correct, but to get it to render in more browsers, you should use this:

-moz-border-radius: 0px;
-webkit-border-radius: 3px 3px 0px 0px;
border-radius: 3px 3px 0px 0px; 


Additions with the demo included:


Working code snippet:

.borderRadiusTop30px {
    -webkit-border-radius: 30px 30px 0px 0px;
       -moz-border-radius: 30px 30px 0px 0px;
            border-radius: 30px 30px 0px 0px;
}

div {
    width: 240px;
    height: 60px;
    background: #44B449;
}
<div></div>
<br>
<div class="borderRadiusTop30px"></div>


This snippet shows a live implementation of the code, and proves that it works.

The reject reason selected is misleading too:

This edit was intended to address the author of the post and makes no sense as an edit. It should have been written as a comment or an answer.

It's not a message to the author, it's intended to improve the quality of the answer.

The editors comment for the edit clarifies this:

Comment: slightly modified example code and created working code snippet from it

With reference to the linked meta post:

Suggested Edit Replacing JSFiddle with Stack Snippet, what to do?

This is not mass editing and it's not swapping one thing for another, it's adding a demo where no demo exists, so it's a different scenario.

2
  • @AnnaLear here's another instance of the duplicate answer bug. I was editing around the expiration of the grace period I believe, not sure if that has any relevance to the problem. Whilst editing, I saw "a new answer has been posted" along the top. When I finished editing and saved, it was my own earlier version of the answer.
    – Tanner
    May 8, 2015 at 13:30
  • @AnnaLear as an aside, I think it was my second/maybe third edit within the grace period.
    – Tanner
    May 8, 2015 at 13:45

You must log in to answer this question.

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