Questions tagged [policy]

This tag indicates that your question is about site policies. Usually, new proposals for policies or questions about existing ones will have this tag

Filter by
Sorted by
Tagged with
15
votes
3answers
542 views

Is the empty string an acceptable decimal representation of 0?

In a recent question for which the correct output for 1 is zero, an answer output ; i.e, nothing. Is this an acceptable base-10 ...
7
votes
1answer
205 views

Should we require that programming languages be able to run locally?

In a recent meta thread the issue of "running locally" was brought up. The main issue is, as best I can put it, "Should we allow submissions in a language that cannot be run locally?" To be more ...
14
votes
3answers
563 views

Closing old question as duplicate of a new one

What is our policy regarding closing an old challenge as a duplicate of a new one? I know this happens on other sites (at least SO), if the newer question is generally better or usually if it gathers ...
13
votes
1answer
420 views

We Built a Programming Language… right?

Recently, Mego, quartata, CᴏɴᴏʀO'Bʀɪᴇɴ and I (VoteToClose) (building upon the work of ProgramFOX et al.) built a chat bot named Data that can run code for several different esoteric languages (and ...
5
votes
3answers
169 views

Accepting numeric inputs in mixed decimal and unary bases

There seems to be agreement that numeric input is by default accepted in either decimal or unary bases. The linked meta-question doesn't address the issue of whether separate inputs of the same ...
11
votes
1answer
147 views

Guidelines for integrating unrelated code written by others?

Are there any guidelines on using code written by others for other challenges as a part of an answer to a completely different challenge? It's a bit of a special case, but I'll explain. I'm currently ...
27
votes
1answer
989 views

Untestable languages

What is the general feeling about answer that can't be tested because no compiler or interpreter is available? The accepted answer to this question is a case in point. The question has been raised in ...
13
votes
1answer
698 views

What are our rules about additional code accompanying function submissions?

This is an extension of this meta question. I've always assumed that function submissions were allowed under the premise that the code would be evaluated once and would in the process either: Define ...
18
votes
5answers
816 views

Guidelines for posting and closing popularity contests

In light of the controversy sparked by this question, I think we need to create a general "rule of thumb" policy on how objective a popularity-contest needs to be in order to be on-topic. The main ...
12
votes
2answers
450 views

On downvoting questions of users not in the know

Recently, I encountered this question where a user had posted a challenge to make an ArrayList and manipulate it in certain ways, very basically. This poster obviously did not understand the site, ...
8
votes
3answers
264 views

What should the policy on improving or incorporating other people's solutions be?

Sometimes, when looking at other people's golfing attempts, you see a trick that will improve your own one, or you might see a glaring improvement that is not entirely obvious to OP. For instance, in ...
15
votes
3answers
136 views

Should we standardise how percentage bonuses combine?

Some questions have a number of bonuses stated as percentages. For code golf (where the majority of these bonuses are seen) these will be percentage reductions of the score. If an answer achieves ...
10
votes
2answers
315 views

Is a single Zalgo character considered a single character?

I saw this question recently, and I was wondering the title of my question. Essentially is stuff like this: H̠̹͖ A single character in reference to questions that ...
6
votes
1answer
237 views

How strict is our list of admissible languages?

If a challenge gives a set of languages to choose from, how freely can I choose a version? Concrete example: I found a solution for a challenge in JavaScript. The challenge just lists a number of ...
7
votes
2answers
245 views

On the subject of testing code

Somewhat related In my Bernoulli Numbers challenge, I've been seeing a lot of invalid answers that fail to compute certain values to the required accuracy/precision, or that take substantially longer ...
13
votes
2answers
709 views

String input with or without “”?

When challenges require to read a string via STDIN/Console I have seen people interpreting that in mainly two ways. The first one was that you actually just have to type the string as ...
2
votes
1answer
170 views

When do I have to include things like Java's public static void main

Can someone tell me why sometimes people are including class C{public static void main(String[]a){...}} and sometimes that seems to be not necessary?(https://...
13
votes
3answers
1k views

Counting bytes for multi-file programs

So far, submissions consisting of multiple files have simply been counted by summing up the scores of the individual files. Also file names aren't counted as long as they are arbitrary. (We do count ...
6
votes
1answer
369 views

Machine code Input/Output defaults

We already have a question about default I/O for general code-golf submissions. However, entries in machine code have different built-in I/O capabilities from entries in high-level languages. Should ...
2
votes
5answers
310 views

Programming languages that do not match our default posting criteria

In the What are programming languages? meta post we seem to have come to the consensus put forth by Peter Taylor that: A purported programming language should be accepted as such if and only if ...
22
votes
4answers
831 views

Can I ask a question seeking feature requests for a golfing language?

I noticed an old question, An improved version of GolfScript, which asked, as a tips question, for people to suggest ways to improve GolfScript. This was a well-received question, but times may have ...
22
votes
1answer
2k views

What does “taking no input” mean for a program?

Fixed output challenges usually state that the program "must take no input". I usually interpret this as "The standard input is empty", but after thinking about this, there are actually several valid ...
15
votes
3answers
276 views

Temporary files and code golf

In shell scripts, one can oftentimes save a few bytes by creating temporary files instead of storing information in variables. Given that the lion share of the work is usually done by invoking ...
18
votes
1answer
380 views

“Way too long” - Allowed or Disallowed?

During my time at PPCG I've seen many answers which don't post the byte count, but instead put "way too long". For example, Thomas Kwa's answer here. I have also seen this on a plethora of Java ...
17
votes
2answers
630 views

Ethics of posting if you're a bad programmer

I'm not a great (or, really, that good of a) programmer, but I enjoy reading other people's challenges, and thought I'd try my hand at submitting a few challenges myself. However, I don't see myself ...
32
votes
6answers
3k views

Can numeric input/output be in unary?

Some string-based languages (including but not limited to sed, Retina, ///) can't really handle integer arithmetic in decimal (or other normal bases). Therefore, these almost always have to start by ...
7
votes
1answer
228 views

Golfing Inform 7

Inform 7 is a language for creating interactive fiction whose syntax approximates natural language. It is so verbose that it will almost never be a good choice for golfing, but its verbosity is its ...
2
votes
1answer
76 views

Adding a “Too Narrow” close option

For multiple recent questions, people have wanted to close a question because the question was too narrow - not enough variety of potential answers to make it interesting. Those questions were: Sign ...
12
votes
1answer
801 views

Can Coderbyte challenges be posted here?

Recently the challenge Word with greatest repeat of letters was posted. The OP said that it was inspired by a question on Stack Overflow, in which the user sought assistance with a solution to a ...
20
votes
4answers
618 views

Are control characters and ANSI escape codes allowed in output?

Recently, I had people go crazy with escape codes on one of my ASCII art challenges. This x86 machine code answer was able to save some bytes by throwing a few colour codes at the console. At some ...
18
votes
1answer
361 views

Is an answer allowed to use undefined, but consistent behaviour?

A lot of languages have behaviour that is not defined in the official spec, or might lack a spec in the first place. If the behaviour is consistent and even well known, can such behaviour be used ...
14
votes
2answers
273 views

Defaults for reading several pieces of input

When reading several pieces of input as command-line arguments, it is common practice to read each piece as a different argument. The command-line arguments now provide an array of the input pieces. ...
10
votes
1answer
206 views

How do we post solutions from external sources?

Sometimes a problem is already solved elsewhere on the internet in an impressive fashion. Quite often people post these answers as well (with attribution to the original author). Of course, there is ...
10
votes
2answers
278 views

Should there be defaults for tiebreakers in tag wikis?

In the code-golf tag wiki, there are defaults for scoring if not specified (in bytes). Recently I have seen some questions what to do in case of a tie. My proposal is to make this a default in the tag ...
14
votes
1answer
237 views

Should [tips] also be tagged with the challenge type?

We've got 93 tips questions. 61 of those also have the code-golf tag. I suspect that actually all 93 of them (or at least 90) are actually tips for code golfing. So this seems like fairly inconsistent ...
9
votes
1answer
189 views

What should the policy be on partial answers? [duplicate]

What should our rules be regarding partial answers? For example, answers to code-golf questions that are not yet golfed answers that almost work, but not quite (answers that require a simple bugfix) ...
40
votes
7answers
3k views

We need to take an official stance on code trolling

Here's our to-do list for the project: Close all existing code-trolling questions (or maybe re-tag those three I mentioned). status-declined - if locked or deleted, closing might not matter, so we ...
9
votes
1answer
203 views

The StackEgg tag

As many of you know by now, Stack Exchange added a minigame that looks like an advertisement at first glance to the right hand panel of all Stack Exchange sites. The game is called StackEgg and it's ...
24
votes
3answers
2k views

Do function submissions have to be reusable?

Simple question: if I answer a code golf with a function (for a task which is supposed to terminate), does the function actually have to be reusable? Or could it, say, modify some globals which break ...
1
vote
6answers
257 views

Should tags be plural or singular?

As part of The Great Tagging Survey, I've noticed that the pluralisation of our tags is a bit inconsistent. The following lists all tags that refer to some kind of object that is dealt with in the ...
17
votes
3answers
1k views

Do programs have to terminate?

This is related to Sp3000's question earlier, but probably a separate issue: Are programs required to terminate, provided they print the desired output before entering an endless loop and can be ...
4
votes
1answer
335 views

How do we count compiler/interpreter flags? [duplicate]

It's accepted practice to include non-standard compiler or interpreter flags in a program's byte count (most often used with Perl and Ruby, to run the program in an implicit I/O loop - but there are ...
16
votes
2answers
1k views

Can numeric input/output be in the form of byte values?

This answer just prompted a question, which I've wondered about a few times when answering challenges in esoteric languages: For some esoteric languages, the only means of input/output is reading and ...
18
votes
4answers
500 views

Do all challenges have to be answered with code?

We have a tag fastest-algorithm and we've had it for a while now. Submissions are scored based on the time complexity of the algorithm. This means that the actual implementation has no effect on the ...
18
votes
3answers
1k views

Should answers to fixed-output challenges be written in a programming language?

We have a definition of what we consider a valid programming language for answers on PPCG. (If you disagree with this definition, please do so on that other post, and not here.) The one type of ...
8
votes
1answer
225 views

What are string literals?

Some questions like Significant Whitespace disallowed string literals. But what are string literals exactly? If I interpret this literally, almost everything in Bash or Tcl are string literals. For ...
6
votes
2answers
253 views

Winning conditions not measurable until question author decides to reveal test data set

This question has an interesting property, in that judging a winner is dependent on unknown data: Recognize handwritten digits This is actually not an uncommon way of things working in puzzle-space. ...
3
votes
3answers
132 views

Should we split per-language tips for different versions?

The recently added list for golfing tips in ECMAScript 6 sparked a bit of a discussion in the comments (and the close/reopen votes) whether tips for different versions of one language should go in the ...
5
votes
1answer
244 views

On byte count and language preprocessing [duplicate]

Related: Fair size comparison across languages with different source alphabets Scoring non-ASCII languages in code-golf has been long-debated. Since I primarily uses APL for code golf, I have seen ...
15
votes
1answer
352 views

Can we make use of abandoned sandbox posts?

Over the years a lot of challenges have accumulated in the sandbox(es) which never made it to being posted on main. Some of these were probably abandoned because they were duplicates or had unfixable ...