Hot answers tagged

17

A code snippet that is included in a question here should not be just a copy/paste from a larger script that you are working on, and it should not be that larger script in its entirety. It should be something concise that a potential answerer can copy/paste and be ready (or at least near ready) to run a test on. Here are some suggestions about what a code ...


8

Code reviews on GIS SE have been discussed on this Meta twice previously in: Code review for a specific piece of code What to do about "what's wrong with my wall of text?" type questions? I think allowing questions of the form: Here is my code (with its purpose well described), can you fix, streamline and/or speed it up for me? is the ...


7

This request came up again in the site design announcement which made us realize we never responded publicly about this. Sorry about that! I think it wasn't totally obvious from the initial release that snippets are really only for JS/HTML/CSS code (a replacement for jsfiddle.net, basically). A good indicator of whether they'll be useful on a site is the ...


7

I sympathise with Joseph's answer; however I have another suggestion: Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code (as formatted text, not pictures) necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt ...


4

No. I'm admittedly pessimistic, but I think assuming that a user would even click on the link in the close reason, much less read through a question and then find the answer that pertains to them, is too much to begin with. I believe that the targets of this message are those users who were obviously not taking time to explain their problem properly in the ...


3

To encourage users to post code, the community now (four years after the question was asked) seems comfortable voting to close questions about code whenever they do not contain a code snippet that illustrates what has been tried and where the asker is stuck. Along with the tool for performing those closures, we try to provide copious comments and edits to ...


3

We should perhaps mention the format button specifically within the text so that the asker can be immediately told how to format their code text. E.g.: "..., a specific problem or error and the shortest code (as preformatted text using the { } button - do not include images) necessary to reproduce..."


2

Perhaps such questions could be closed "as unclear what you are asking" instead. Basically, in many of these questions there is insufficient detail to write an answer, but Google Earth Engine is not my area of expertise so maybe they are answerable without any sign of effort by the asker.


2

I had not noticed this but, if I have understood your concern about it, then I do not think it is anything to worry about here because we always try to ensure that we have a code language setting for any code tags used on the site via Any coding tags missing code language setting for syntax highlighting?


1

Until you post your question it will be difficult to assess whether it is Too Broad for focused Q&A. From https://stackoverflow.com/help/minimal-reproducible-example, as long as the code you present is minimal, complete and reproducible then you should be fine, as long as you only ask one question. If you find yourself wanting to place more than one ...


1

I am going to first focus on your closing summary: I am more interested in when the tags should be applied and why this isn't consistent because I believe consistent interpretation of the site's guidelines is very important. This site's guidelines, like those of any Stack Exchange site, are numerous and are therefore absorbed over time rather than on ...


1

I propose that we tweak the wording above to become something slightly broader: Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others ...


Only top voted, non community-wiki answers of a minimum length are eligible