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
17
votes
1answer
3k views

Command-line flags on front ends

Our standard policy regarding command-line flags states that one should count the space before the dash (-) too, when there aren't any "free" options, since it ...
10
votes
1answer
297 views

Is a transliteration tool enough to grant count as SBCS?

Prompted by this. I'll speak about Dyalog APL here, but this could really apply to any language. Background Dyalog APL has its own SBCS called ⎕AV. For backwards ...
0
votes
1answer
260 views

“Windows” as a programming language?

I was going to give the green tick mark to the winning submission of this challenge, but I am unsure what to do. The shortest submission is this, which claims to use "Windows language", but I doubt ...
11
votes
1answer
268 views

Should we have a new, improved matrix determinant challenge?

There is currently a challenge to compute the determinant of a matrix. However, it was written 5 years ago, before our current quality standards were established. It falls short of those standards in ...
11
votes
3answers
377 views

Can JS answers require the code to be run at a certain domain?

In challenges that require loading remote data - e.g. "What's my PPCG ID?" - some JavaScript (or other languages that may be run in the browser) answers may rely on being run at a certain domain (...
11
votes
0answers
273 views

If we can require a particular domain, can we require a particular path?

Background Following on from this question where it was decided that, as we define languages by their implementation, JavaScript solutions could include a requirement that they be run under a specific ...
2
votes
1answer
161 views

Is using the Swift REPL for my answer valid? [duplicate]

This is a very strange hack that I came across the other day. In the Swift REPL, if I create an instance of any type (say for example, a String), it automatically gets assigned to a variable in the ...
26
votes
7answers
743 views

Should question/challenge titles always be in English?

There's some dispute over this challenge's title. The author originally created it as "Многочлены Чебышёва". A user edited it to "Chebyshev Polynomials" (an imperfect translation, ...
0
votes
1answer
76 views

Is it wrong to ask for an answer that is not source code?

Consider king-of-the-hill challenges. Significant effort on the part of the challenge presenter goes into collecting the code entries and massaging them into a runnable state (language versions, ...
0
votes
0answers
28 views

Are modifications to existing languages allowed as submissions? [duplicate]

Say I have a language I'd love to use (like JavaScript for example), but there are tons of little pieces of functionality I'd love to modify built-ins with, like ...
91
votes
4answers
3k views

Let's allow newer languages/versions for older challenges

I've been thinking for a long time that our non-competing policy for newer languages (or language versions) is harmful. Just for context, we currently require all answers which require implementations ...
9
votes
1answer
365 views

Scoring Java lambdas with imports [duplicate]

In this answer, I used a java.util.List as a parameter to an anonymous function (lambda) answer. So, my question is, Should this import be counted to the byte ...
18
votes
1answer
559 views

Where should we put robbers?

Just in case you didn't know already, we have a fairly new type of challenge: cops-and-robbers I enjoy these challenges very much, but I don't know if the current format (cops post answers, robbers ...
1
vote
4answers
72 views

Defaults for word lists

Some challenges (that I'm currently mulling over with a view to posting) require that the solution produces valid words. Having to embed an entire dictionary in a code-golf entry isn't the point of ...
10
votes
1answer
257 views

What to do about mathematical concepts with different definitions?

You must be wondering, why is this a so important subject? Well, take the example where a challenge asks you to take a "natural number" as input. What's a natural number? A non-negative integer, or a ...
2
votes
1answer
106 views

Must answers be given as SOURCE code, or is machine code acceptable? [duplicate]

It's been my understanding that answers in code golf competitions should generally be given as source code. But lately I've seen a few answers specified as x86 assembly, counting the size as the ...
2
votes
1answer
68 views

Can I assume that the input will always be within the printable ASCII range (0x20-0x7E)?

Many challenges don't specify what characters the input consists of, so I often assume the input will only consist of printable ASCII chars. Is my assumption correct? Note that this mostly concerns ...
15
votes
1answer
344 views

What to do about widely disliked questions that don't technically break any rules?

Sometimes a question is posted that widely disliked (often due to being too easy, or being excessively arbitrary, or playing around in a space that's been mostly comprehensively covered without ...
10
votes
3answers
350 views

What assumptions about the file system layout can be made?

At times, it may be advantageous for a solution to a challenge to make certain assumptions about, for example, the directory from which it is run. For example, a bash script that compiles and runs a ...
7
votes
1answer
269 views

Should you answer a competitive question if your answer is not competing / is not competitive?

I'm curious, because some answers seem to be posted regardless of the winning answer. Should non-competitive answers be posted when better answers exist for entries of the same language?
1
vote
1answer
174 views

Is it permitted to upvote only to test submissions?

In order to properly test the submissions to Martin vs Dennis - Round 1, one would need to upvote the current lesserso their reps become equal, and then continue upvoting so the former lesser becomes ...
9
votes
2answers
334 views

Dumping the output as an answer

Sometimes, on kolmogorov-complexity challenges with a constant output, we get extremely boring answers that make absolutely no effort to compress the output whatsoever, and instead just literally dump ...
7
votes
4answers
295 views

How do we define “deterministic”, and is it required by default?

We seem to have implied restrictions that code submissions should be deterministic, but this doesn't seem to be well-defined or explicitly restricted as a loophole. The closest loophole is this one. ...
5
votes
2answers
172 views

Should we repost a challenge because of a changed consensus?

Golf you a quine for great good! is a great example, since it was posted before the quine consensus was made. That means it's cluttered with answers not following it. Should we repost challenges ...
24
votes
3answers
620 views

Is this an acceptable way to shave a byte in ES6?

Say there's a challenge with two inputs. Can we submit a function signature like this? a=>b=>... Instead of ...
16
votes
1answer
952 views

Keep your golfing in your code, not in inputs and outputs

I am becoming more and more annoyed at the ever-increasing number of rules about what is deemed acceptable as inputs and outputs to programs Here is a compilation of such rules that I found: ...
0
votes
2answers
87 views

What happens if I get upvoted but have already reached the daily limit?

The title says it all. I reached my daily limit today and noticed that one of my questions was upvoted after I reached the daily limit. What happens to the reputation? Do I get it tomorrow or is it ...
14
votes
1answer
231 views

What should be the process for updating an established consensus?

There's many cases in which someone has a question about what site policy should be, people come up with suggestions, and one of them becomes highly popular and thus is treated as a rule. So far, ...
13
votes
2answers
463 views

Is a language with an extension a valid golfing language?

In a current challenge, Falsify brief truths, @Lynn proposed an edit to my Haskell answer that requires the ...
11
votes
5answers
454 views

How to count languages?

A common problem for rosetta-stone and polyglot challenges (and some code-challenges) is to decide when two different languages/dialects are different enough to be counted separately. Common ...
1
vote
0answers
72 views

Can a language's True/False be used in place of their values in a sequence? [duplicate]

I'm asking this to find a consensus on whether it's okay for an answer to use True or False in place of the language's ...
0
votes
0answers
64 views

Can lambda parameter types be left off if potentially inferable from context? [duplicate]

This Java answer (and this one) uses a lambda that does not explicitly declare its parameter type, but this Scala answer includes a parameter type. in both cases, the type could be inferred when it is ...
1
vote
1answer
116 views

Should stdout be ignored when the program is a function?

My understanding is that, when stdout is used for output, stderr is ignored. Similarly, it would seem that, when a function's return value is used for output, stdout and stderr should be ignored. ...
2
votes
1answer
88 views

Is Ctrl-C one keystroke or two?

Preliminary question: is it valid to score Excel in keystrokes? I guess it is, but I'm not sure what our policy is. Assuming it is (or, in general, for languages that are scored in keystrokes), does ...
2
votes
1answer
130 views

PPCG equivalent to http://stackoverflow.com/jobs

Dyalog's APL team is looking to hire, and we are more interested in golfers than regular programmers, as the former are more likely to have the right mindset. Since codegolf.stackexchange.com/jobs ...
11
votes
4answers
1k views

Should we combine answers where the same code works in many different languages?

Take this recent challenge for example. There are many languages where the shortest solution is simply *. Likewise, for other trivial challenges, the same 1-byte ...
2
votes
1answer
231 views

Introducing FunKiller

I've invented a new language called FunKiller, which is designed to make radiation-hardening challenges trivial and boring. This is the JavaScript interpreter: ...
2
votes
2answers
132 views

How do we treat old answers in “languages” that aren't real languages?

This is a followup of this meta post about Wolfram|Alpha, but it is probably relevant for other "languages" as well. There seems to be a consensus that Wolfram|Alpha is not a programming language +19/-...
14
votes
1answer
395 views

On using multiple languages for a singular code golf submission

I was wondering if it were possible to use multiple languages in the same submission. Not a polyglot, but using each of the languages. I have two thoughts on this. One language invokes the other. Let'...
1
vote
1answer
121 views

Is it OK to delete old answers?

Since this is not a QA site as such, I don't think there's a whole lot of value in keeping old solutions around for future reference. And for new users to the site, it's a bit like discovering an ...
2
votes
1answer
118 views

Why is this answer considered non-competitive?

A few weeks ago I posted this answer on a challenge. Yesterday it was deleted because "it isn't a serious contender for the winning criteria" despite getting the second best score in the challenge. ...
1
vote
1answer
41 views

Should “Operations with lists” be broken up into individual challenges?

As it stands, Operations on lists is in a bit of a weird place. It could be considered a multi-part challenge with minimal interaction between the subchallenges, which aren't allowed, but is pointed ...
13
votes
2answers
380 views

How to count programs in Folders?

Folders is an esoteric programming language without any files at all. Instead, the program is represented by the directory structure instead, so our normal rules for counting the file size of the ...
6
votes
3answers
219 views

Command Line Arguments in Polyglots

It occurs to me that there isn't really a general consensus on how command line arguments should be treated in polyglots. So... What should the consensus on command line arguments in polyglots be? I ...
2
votes
3answers
192 views

Trailing Newlines, Spaces, Limited Precision and Language Limitations

I think we should gather a list of all languages that are, by default, allowed to to do things differently on challenges that do not explicitly disallow it. Every question I write it seems that ...
18
votes
3answers
627 views

Should we disallow non-observable requirements?

One of the more recent things to avoid that's coming up a lot is the use of non-observable requirements. The most common incarnations of this are things like "no hardcoding", "implement this algorithm"...
2
votes
1answer
69 views

To what extent the answer is allowed to change the description in the challenge?

PS: Honestly I just proposed my first challenge on PPCG hours ago, so feel free to criticize me. I just had my very first challenge published here and I ran into a problem that some answers are based ...
1
vote
0answers
44 views

Are automata or state machines a valid choice of language? [duplicate]

I've noticed that some challenges could be solved using automata. For example, this challenge in closing XML tags could be solved using a pushdown automaton. Would such an answer be acceptable? If ...
1
vote
2answers
114 views

Bytecount for code solution

I know I'm probably on thin ice, but I tried an answer in the print "Hello, World!" challenge. I consider it to be 5 bytes total, but the user ais523 pointed out that I had to count the ...
14
votes
1answer
446 views

Are challenges that may not be solvable on-topic for PPCG?

Consider the following example challenge: Given a set of integers, output a truthy value if there is a non-empty subset whose sum equals 0, or a falsey value if no such subset exists. Solutions ...