Timeline for How can we avoid "overhang" code indentation?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 4, 2015 at 13:55 | history | edited | Peter Mortensen | CC BY-SA 3.0 |
(its = possessive, it's = "it is" or "it has". See for example <http://www.wikihow.com/Use-its-and-it's>.) Used the official name of Stack Overflow - see section "Proper Use of the Stack Exchange Name" in http://stackoverflow.com/legal/trademark-guidance (the last section).
|
Sep 4, 2015 at 10:16 | comment | added | Deduplicator | You might want to look at en.wikipedia.org/wiki/Indent_style#GNU_style, which your third example is somewhat similar too. | |
Sep 4, 2015 at 9:48 | comment | added | Jon Skeet | I think we'll have to agree to disagree. I think if you're asking a community of experts to put time into answering your question, it's disrespectful to not care enough to take a few seconds to format your code. The goal of the site is to create a repository of high-quality questions and answers. | |
Sep 4, 2015 at 9:47 | comment | added | Roy T. | I also think there is a very good reason for this site having many badly-formatted questions. Most people are not here to curate an encyclopedia. They just want to ask a question or be helpful by answering one. I think there should be a point where this is OK. Forcing people to take more time for formatting might even be considered unreasonable for the goal of the user and site (of course I'm now exaggerating a bit, but I hope you see what I'm getting at :) ). | |
Sep 4, 2015 at 9:43 | comment | added | Roy T. | Say you have a completely blank screen. Anything you add to that will add some 'confusion' or detraction from the main function. A small percentage of people not understanding it immediately. This is especially true since the check will be in English, while most StackOverFlow users are not native English speakers. | |
Sep 4, 2015 at 9:34 | comment | added | Jon Skeet | Well-written feedback shouldn't add confusion - but it can improve the quality of the site. There is absolutely no reason for us to have so many badly-formatted questions. Now I believe users should check the preview before they post and actually put some effort into making their questions legible anyway, but if they're not doing that already, I see nothing wrong with prompting them to. | |
Sep 4, 2015 at 9:32 | comment | added | Roy T. | These are just a few examples that I thought of immediately, for a single language. There are of course many more scenarios. Which of course can all be detected, if you're willing too. The '(but not always)' is what I'm hammering at here :). I understand you want a check. That will, in one way or another, lead to feedback to the user. I think that will add at least a little confusion and I personally don't feel that we should add that. | |
Sep 4, 2015 at 9:30 | comment | added | Jon Skeet | And that's why this would only be a suggestion to check. And note that in the first two examples you've given, there would often (but not always) be another statement below, at the correct indentation - so the warning wouldn't trigger. (It would only be if just the first line was indented less than everything else.) | |
Sep 4, 2015 at 9:28 | history | answered | Roy T. | CC BY-SA 3.0 |