Skip to main content

Questions tagged [code]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
54 views

Posting code and its link on GIS SE

How do I post my code and its link on GIS Stack Exchange?
Muhammad Waqas's user avatar
11 votes
1 answer
175 views

Is it necessary to add a minimal code to question when self-answering?

Besides being beneficial to people, it is also useful for future me to add here my problem I encountered and its solution (not existing in GIS SE) as a question and answer. I frequently find myself ...
Kadir Şahbaz's user avatar
3 votes
1 answer
47 views

Code blocks are hard to distinguish from normal text

Especially when syntax highlighting is off (e.g. because of the lack of proper tags like here), code blocks are hard to distinguish from normal text, because the default background is already grayish: ...
Glorfindel's user avatar
  • 1,096
1 vote
1 answer
45 views

Is a Pythonic MCVE acceptable for this top voted accepted GIS SE answer?

I am in the process of writing my question requesting a clarification of this top voted accepted GIS SE answer - Using Geohash for proximity searches and I have a pythonic attempt as an MCVE. Is that ...
user avatar
8 votes
1 answer
112 views

Questions closed for "a specific problem/error and code to reproduce it" when the question is not about an error

Recently, I have seen several questions closed for the close reason "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest ...
Kevin Reid's user avatar
  • 10.5k
7 votes
2 answers
143 views

Modifying custom close reason for when pictures of code rather than formatted text are presented?

Last time we tweaked the custom close reason below was at Tweaking custom close reason for poorly framed code debugging/writing/improving questions? Questions seeking help to debug/write/improve ...
PolyGeo's user avatar
  • 65.4k
2 votes
1 answer
116 views

When is it appropriate to tag Python or Arcpy?

This metapost discusses the use of python tags for Shapely libraries and the top-voted answer suggests that removing the python tags limits the potential audience as those who favourite the python tag ...
GISHuman's user avatar
  • 3,701
2 votes
1 answer
78 views

Replacing MCVE with Code Snippet in custom close reason?

We currently have a custom close reason of: Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to ...
PolyGeo's user avatar
  • 65.4k
21 votes
1 answer
2k views

Writing code snippets to get quicker answers

The term "code snippet" is often used when trying to help users frame their coding questions. Other similar terms can be found in: How to create a Minimal, Reproducible Example: minimal, ...
9 votes
1 answer
145 views

Asking code review questions for GIS related code?

I know Stack Exchange has a Code Review site, but asking questions about GIS focused topics there appears to have the same problems as asking GIS focused/related questions on Stack Overflow. The ...
user avatar
5 votes
1 answer
181 views

Tweaking custom close reason for poorly framed code debugging/writing/improving questions?

In Shortest code to reproduce GIS programming problems I think we made good progress on getting a more useful set of custom close reasons for GIS SE. However, I think the current wording of our ...
PolyGeo's user avatar
  • 65.4k
29 votes
2 answers
447 views

Can we get Stack Snippets enabled?

Just saw that StackOverflow and a few other sites have gotten a new runnable code snippets feature. As far as I can tell it is not enabled for this site -- the toolbar button to access it does not ...
blah238's user avatar
  • 35.9k
11 votes
1 answer
252 views

Guiding authors of code related questions to post actual code?

I've noticed that in code related questions on GIS SE, particularly OpenLayers / Leaflet / JavaScript ones, that new people are not posting up any code examples. The example that prompted this ...
Kelso's user avatar
  • 1,916
0 votes
0 answers
80 views

Generic GIS code repository? [duplicate]

Possible Duplicate: Could we have a 'Code library'? Would it be possible to develop a section of the site to act as a simple code repository? For instance, many articles associated with ...
Radar's user avatar
  • 10.7k
8 votes
3 answers
195 views

How much code is appropriate for an answer?

I think a lot of gis.SE visitors are looking for code. Sometimes a small snippet of code is sufficient to answer a question, but other times it can become lengthy. Also, at some point it becomes ...
Kirk Kuykendall's user avatar
2 votes
4 answers
100 views

Sharing ArcObjects/ArcGIS snippets?

Can we make an attempt to share snippets here directly which we think can be used regularly? For example, adding shapefile programmatically, or buffer etc.
user avatar