On Stack Overflow I find many code snippets which are otherwise correct but will throw an error because of the case sensitive nature of the programming language it's written in (Java, Unix, etc).

I try to edit them when possible. But am asking the question because most of the time the changes are less than 6 characters and so editing is not possible. I leave comments but most are ignored.

Is it necessary for a minimum characters cap for editing? I have seen 'Title' can be edited with just one change. And reviewers can easily reject edits which are not useful.

Or will it be useful if we remove the minimum character cap for editing when it is in a code block?

Stack Overflow code snippets have helped millions (including me numerous times) and it hurts to see such trivial mistakes in them.


I would argue that this is very rarely a situation that poses itself, and it helps to keep the review queue clean. Since once you have > 2k rep this isn't a factor anyway, the best option in this scenario is to flag the answer for attention by a moderator. Not only does it help you towards your 'Marshal' badge, it helps to ensure that other edits aren't missed as well (e.g. spelling & grammatical errors).

  • Oh! So we can flag mods for such issues too. Hmmm!! Ok!! – some_other_guy Oct 23 '12 at 5:31

Please **do not** edit case-sensitive code!

This can make answering a question impossible if the code is seemingly completely correct after editing.

When this situation arises, I would either answer a question with the corrected case of the code (with any other changes necessary, of course), or post a comment on an answer that has improper casing.

  • 2
    This depends on whether the code is in a question, and whether it is the main point of the question. You should correct it if it is un-related to the main point of question, or if the code is in an answer. – ronalchn Oct 23 '12 at 8:46
  • @ronalchn: I was bothered about the code in the answers. – some_other_guy Oct 23 '12 at 10:11

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