Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
5
votes
1
answer
100
views
User edits code in their question to reflect suggestions made in answers [duplicate]
I'm asking: what to do when users try to edit code in their question such that it removes the problem from the code example. … The asker will then edit the code in their question to fix the mistakes/bugs/problems in it, based upon what the answerer pointed out in their answer. …
8
votes
2
answers
450
views
How to handle suggested edits changing code in answers to deviate from code in the question?
I then opened up the question to further see what was going on and noticed the code in the answers was done to match the code in the question. … of them another reviewer rejected the edit too but the other one two other reviewers accepted the edit so it went through, I then went to the answer and rolled back the edit. …
14
votes
1
answer
403
views
Edit to fix incorrect code in answer rejected?
I came across How to convert a c string into its escaped version in c? and found the code at the end of the accepted answer to be suitable for my needs. … The edit was rejected 3-to-2, and I don't understand the reasons given:
This edit changes too much in the original post; the original meaning or intent of the post would be lost. …
1
vote
0
answers
136
views
Can I edit code in an answer? [duplicate]
jsfiddle has a feature that the "answer" code is editable.
For example, I asked a question and got an answer. Now I want to learn off this answer by modifying it and seeing if it still works. … I have to start an editor, copy paste the code, save it and run it.
In JSfiddle, the code is modifiable right then and there.
can this feature be added to SO? …
-9
votes
1
answer
140
views
Posting equal code for answers and questions by the others to improve them
all browser after a user change password
it would be interesting if we had a feature like edit ( which everyone can edit the question), which users could put equal code in other languages for codes in … unless if someone's looking for a answer in c# but found it in php, maye he will post the question in stackoverflow again. …
5
votes
2
answers
143
views
Is editing incorrect code in an answer by another author acceptable? [duplicate]
I came across a proposed edit where the code (a SELECT statement) is considered by editor to be incorrect so editor proposes changes in the code. … NOTE: many posts address similar issues, but they to all seem to pertain to style; I could not find any question in MSO which addresses changes to correct an incorrect answer or malfunctioning snippet …
26
votes
1
answer
526
views
Fixing wrong code in people's questions [duplicate]
And here is what I wrote in the comments to the person who self-identified as the one who made the edit:
@... Please do NOT fix code errors in people's questions. That is an ANSWER. … The error is the reason people asked in the first place - what's the point of editing the question instead of giving an answer? Show correct code in the answer, leave the errors in the question. …
2
votes
0
answers
133
views
Should I suggest an edit to fix a bug in an answer? [duplicate]
I recently made a suggested edit to fix code in an answer that did not work.
The edit was rejected by other members because they said edits should only touch format or spelling. … This post includes suggestions for how to edit code in questions and answers, but not on the topic of bugs.
Should I make an edit to fix a bug in an answer? …
8
votes
1
answer
318
views
Malformed code tag in answer rendering (but not in edit preview mode) [duplicate]
It only shows up in the full answer view, not the Editing Preview (Update: after a seeming no-op edit by @Braiam, the bug is no longer visible...it may or may not be of interest if it's a latent problem … >
<td class="vt">
Answer MarkDown around the location of the problem is fairly benign, code tag in italics:
<h3>I'd very much like some pointers on c++ conventions</h3>
That's very subjective, …
13
votes
1
answer
1k
views
I couldn't submit my edit on an answer due to unformatted code, yet I didn't edit any code i...
I recently went to edit a popular answer because a certain sentence made some physics references that were worded somewhat awkwardly (at least to me), so I reworded the sentence and hit submit without … My submission wasn't allowed because of improperly formatted code. Why did this happen?
Screenshot of edited portion with error:
Original text: …
48
votes
3
answers
3k
views
What was wrong with this suggested edit, which added an explanation for the code in an answer?
This is the edit I'm talking about: https://stackoverflow.com/review/suggested-edits/32614730
The answer was originally just a block of code. This edit added an explanation about how it worked. … The OP even commented on that answer, asking "Why does this work" (direct quote from OP's comment)
In my opinion (and another reviewer's opinion as well), this was a good edit. …
4
votes
1
answer
150
views
Editing code which harms an organisation [duplicate]
Is it acceptable to edit the post and remove that information?
These meta posts didn't give any idea on said situation:
Is editing incorrect code in an answer by another author acceptable? … How far can I refactor the code in someone else's question? …
5
votes
Is there an exception to the "don't edit the code logic or functionality" mantra when the co...
Editing code in answers is far more acceptable than editing code in questions. Make sure to not change the intent of course, but if its just a typo, then go ahead and fix it. … Feel free to leave a comment in such cases (when you have the reputation). …
43
votes
2
answers
539
views
How to review suggested edits that fix security issues?
In the last days, I encountered several suggested edits that try to fix code in answers that are prone to SQL injections, similar to this edit:
The question is now: Which action should be taken in the … I also don't think that How to deal with dangerous answers answers the question because the current code is not actively or intentional harmful but just has security implications. …
11
votes
1
answer
215
views
What should I do if a suggested edit is proposing to update the code to a new version of the...
The reasoning to include code in answers is understandable. … I've also seed answers where someone proposes an edit to the answer and adds a header to specify the code for a specific version of the language like:
Updated for Swift 2.0:
code for Swift 2.0 would …