Skip to main content

All Questions

Filter by
Sorted by
Tagged with
-22 votes
2 answers
417 views

When is it OK to upload images of code/data/errors? [duplicate]

When is it OK to upload images of code/data/errors? – If your answer is never, can we please talk about it? Don't get me wrong. I don't endorse uploading code/text in an image instead of uploading ...
Henke - Нава́льный П с м's user avatar
-10 votes
1 answer
230 views

Are there any Stack Overflow rules regarding line indentation in formatted code?

... or in other words: Why would someone want to edit an answer just to remove four leading spaces of a few code lines? Example: https://stackoverflow.com/revisions/73159227/5 - should I have known ...
Stefan Wuebbe's user avatar
68 votes
6 answers
2k views

Should code be edited so that it is visible rather than being in one long line?

In many instances, I have seen code that is poorly formatted or all in one line (like below using R). Is it appropriate to edit the code so that it is more legible? I know in some instances these are ...
AndrewGB's user avatar
  • 16.8k
26 votes
5 answers
2k views

Why are posts edited to change the code formatting markers?

I have seen some edited posts, which have been edited to change the way that code is formatted. Sometimes, this is also the only edit they make. It will be changed from four spaces indentation to ...
12944qwerty's user avatar
  • 2,007
19 votes
3 answers
1k views

Is a markup change enough improvement to be accepted as an edit?

Referring to the following suggested edit in the review queue: https://stackoverflow.com/review/suggested-edits/28302046 In case the suggested edit in question isn't accessible any longer, here it is ...
J. M. Arnold's user avatar
  • 6,739
-7 votes
2 answers
224 views

OP's question was erroneously edited. The moderators want to keep erroneous question as it looks 'pretty' and readable

I have a question about my Stack Overflow post: Truncate column names in SELECT (MySQL client) The OP for a MySQL query (Truncate column names in SELECT (MySQL client)) had a problem with the ...
justabot's user avatar
5 votes
0 answers
118 views

Are edits that purely reformat code, based on preference, good edits?

Start note: This question is very similar to a question that was flagged as similar. Are purely cosmetic edits to original code frowned-upon, even if they accompany high-value non-code revisions? The ...
Thom A's user avatar
  • 95.1k
-2 votes
1 answer
132 views

Edit code where indentation is only one space?

I've read a couple of posts here and I came to the conclusion that you should not change the indentation style of a post. It's up to the poster to decide that. And that also includes how many spaces ...
klutt's user avatar
  • 31.2k
2 votes
2 answers
114 views

Deal with edits that merely change indenting convention in code samples

There are so many coding conventions out there, in particular with regard to how much indenting to use. I don't think it makes any sense to discuss which one is easier to read in the same way as it ...
Harald's user avatar
  • 5,063
17 votes
2 answers
503 views

Should code formatting be used for package names?

It's clear enough that product names should not be formatted as code. What about package names? To me, this feels like a corner case not clearly addressed in When should code formatting be used for ...
user avatar
3 votes
3 answers
265 views

Is it OK to edit away boilerplate getters and setters from OP's original Java (& equivalent) code? [duplicate]

Usually - maybe more experienced - Stack Overflow users remove irrelevant/boilerplate getter/setter code from example code and add a comment like // getters, setters or as I do as a Lombok user by ...
pirho's user avatar
  • 12.2k
21 votes
2 answers
433 views

Pure error message edit - how to react

I had yesterday somebody, who simply dumped his unformatted error message into the text body. When I tried to edit it, to make it at least comprehensible, SO didn't allow me to do this. I understand ...
Mr. T's user avatar
  • 12.4k
51 votes
2 answers
1k views

Cannot edit post due to code [duplicate]

I keep seeing these posts that are mostly code wrapped by a few lines of text, aforesaid code being formatted terribly. If I try to improve their post and edit the code I get the error: it looks ...
MD XF's user avatar
  • 6,411
2 votes
1 answer
120 views

Should questions be edited to remove error-checking statements that dilute the code?

In C one should rigorously perform null-checks, however doing so obfuscates the rest of the code making it more difficult to review. Is it okay to remove such statements from an original post solely ...
Filip Allberg's user avatar
6 votes
1 answer
107 views

Should snippets in questions be expanded so the code compiles even if the gist is understandable otherwise?

I've noticed several occasions where a nice clean code snippet in a question is edited by another user to transform the snippet into a working program. The most recent example I noticed was this ...
marack's user avatar
  • 2,066
2 votes
0 answers
53 views

Edits which only change coding conventions (like brace placement) [duplicate]

I've come across some edits that only change the coding conventions of the code in a post. Both are valid, widely-accepted conventions, both are well-formatted. Why the edit then? And more to the ...
metacubed's user avatar
  • 7,271
115 votes
5 answers
4k views

When is it okay to edit posts for "Code Formatting?"

I recently posted this answer: Continuing the most outer loop from the most nested one It contains a block of Java code, written by me, currently under an edit war between myself and the original ...
Raven Dreamer's user avatar
7 votes
1 answer
93 views

What is the official stance on text wrapping edits?

If a question contains a code block that causes a lot of horizontal scrolling e.g: NSURLSessionDataTask *task = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *...
HaemEternal's user avatar
  • 2,269
86 votes
2 answers
8k views

When should code formatting be used for non-code text?

I reviewed an edit that did no change to the post apart from introducing code formatting like this to words that aren't code, such as iOS and Android (while curiously leaving Delphi untouched). I didn'...