Skip to main content
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
Results for edit code in answers
Search options not deleted
39 votes
4 answers
1k views

Should an old question be edited to use a newer programming language (Objective-C replaced b...

As it turned out, the question was edited in January 2015. In particular, the existing Objective-C code was replaced by the corresponding Swift code, and the swift tag was added. … Is it okay to edit an old question and replace Objective-C code with Swift code if I am going to post an answer using Swift? …
80 votes
3 answers
2k views

When did questions generated by AI become allowed?

that use code generated by ChatGPT?) … There is, however, no indication in the text it is about content from an LLM (such as "CrapGPT suggested this answer"). …
-4 votes

Improving description on raised flag for AI generated content

Eventually, ignore remarks of uncertain interpretation and edit them out. There were some other indicators in this instance. … OP only had 29 rep (which they got from two upvotes and accepting two answers from other users), and as you said, not understanding their code is a bit of a tell. …
Anerdw's user avatar
  • 1,678
131 votes
1 answer
2k views

A proposal to stop curating/moderating Discussions until it's "fixed"

Many of the non-spam posts I have seen in the last week have been simple code dumps, or just entire nonsense. … In an attempt to get Stack Overflow to do something, I am therefore proposing that as a community we stop curating and moderating Discussions; leave Spam in situ, leave code dumps alone, basically, don't …
9 votes

What can I learn from the downvotes to my question?

At a glance, I'd guess that this confusion is probably not relevant to your actual question, but having included the error in the question perhaps invites answers to address it, arguably broadening the … I'd err on the side of including such information when first asking a question, knowing you can always edit it out later, once you've got an answer, if it turns out in hindsight to have been irrelevant …
Dmytro Rostopira's user avatar
9 votes
Accepted

How can I leave a comment on a pending suggested edit AFTER I rejected it?

You have a few options, depending on the situation: Leave an edit of your own with an appropriate summary (keeping in mind that anyone looking at the history will see the summary but may not see the rejected … For example, if you reject an edit because it did code formatting wrong, you can do it right. Leave a regular comment. …
Laurel's user avatar
  • 6,163
1403 votes
Accepted

Why should I not upload images of code/data/errors?

Code or sample data in images can't be copied and pasted into an editor and compiled in order to reproduce the problem. … Instead of using images for code, copy and paste the code as text into your question or answer, select it, and hit the code button in the toolbar (it looks like {}) or press Ctrl+K. …
wjandrea's user avatar
  • 32.6k
16 votes

A user is removing tags from questions, that I edited

Putting JavaScript code in a question doesn't make it a JavaScript question. How do you know, in this case? … In your answer, where you replaced if (String "contact"=request.getParameter("contact");) with String contact; if ((contact=request.getParameter("contact")) ! …
Karl Knechtel's user avatar
26 votes

A user is removing tags from questions, that I edited

Just because there's some code of a certain language in a question, doesn't necessarily mean that that code is the problem, or even relevant to the answer. …
Cerbrus's user avatar
  • 72.6k
14 votes
3 answers
438 views

Answering by suggesting editing an open-source external library

The solution I came up with looks good to me, and I think it could help others in the same case. … Is it OK to submit an answer suggesting editing the source code of an open-source external library (like datatables.js) to solve an issue? …
8 votes

How could I have improved this suggested edit of a Python question?

You took it to mean x specifically; I took it to mean the code fragment x = 1/2 (in which case, in 2.x, the answer is no, and this is important for understanding the problem - because OP seems to have … assumed the problem was in formatting, when it's actually in the calculation). …
Karl Knechtel's user avatar
7 votes

What value does the staging ground have if we are treating it as if it was the main site?

(I'm breaking away from my usual italic/bold formatting style for this answer - since it's more of a response than an attempt to state an authoritative position.) … from question authors in terms of making sure that the code says what you think it does and that your general approach to the problem is coherent and logical. …
Karl Knechtel's user avatar
11 votes

Where can I find an exhaustive list of magic shorthand links?

[answer] – links to the "How to Answer" page. Link text is "How to Answer". … These work in questions, answers, comments, and chat – but in comments, they are just formatted like regular links, rather than appearing like tags. Link text is just the name of the tag. …
Cornelius Roemer's user avatar
-15 votes
1 answer
141 views

Canned comments on "First Questions" review queue should be more useful and welcoming [duplicate]

One of the current canned comments reads: "Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer." … share your current research (links, code examples) specify which programming language why does the manual not answer your question? …
30 votes
Accepted

Should I not flag users with very questionable SG reviews?

To answer the general question: yes, do flag users that may be robo-reviewing in any queue. … Should these kind of mis-review be treated the same as deleting a code-only post in Low Quality Answers? We don't review-suspend users for failing to identify dupes in Triage either. …
blackgreen's user avatar
  • 43.8k

1
2 3 4 5
33
15 30 50 per page