Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [policy]

Indicates you are inquiring about existing site policies or proposing new ones.

0
votes
1answer
47 views

In bash, can I use non-coreutil programs

Since bash scripts (or any other Linux shell scripts) are accepted as a programming language, I wonder what (Linux) programs are accepted as callable from the command line. It seems that it is ...
0
votes
0answers
97 views

Scratch 2.0 is no longer considered a “free” language. Does this retroactively make cops-and-robbers cop answers in Scratch 2.0 non-competitive?

As per this question's answers, Scratch 2.0 is no longer considered a "free" language. As per this question's accepted answer, non-free languages are allowed if marked as non-competing. Scratch 2.0 ...
4
votes
0answers
82 views

Non-standard command line calls

Note this isn't about command line flags, which already have a consensus here. There was a recent PHP answer involving multiple PHP files. Normally, programs with multiple files are either using one ...
22
votes
2answers
341 views

Is it permitted for a submission to terminate merely with probability 1?

The question is in the title. I'm interested in submissions that terminate with probability 1 but have unbounded worst case running times. This is related to the question Do programs have to ...
8
votes
1answer
197 views

Post other people's code?

Some people are very good code golfers but for their own reasons do not want to join PPCG. Is it acceptable to post their solutions as answers to challenges? If at all acceptable, I would personally ...
8
votes
2answers
319 views

So what happens now?

Martin Ender is stepping down as moderator. We had a moderator election only about half a year ago. There were three candidates, of which two were elected. The last candidate was PhiNotPi. Do we ...
26
votes
1answer
366 views

The view from a newcomer (or an unwary traveller)

I had a small programming problem, Checking a file contains only null bytes. Having chanced on PPCG a few days before, I thought this could be an interesting place to see various ways someone might go ...
13
votes
2answers
251 views

Is function returned by first invoke of a currying function submission required to be reusable?

As per past discussion, function submissions should be reusable. And, currying function may be a valid submission. Consider a challenge which require 2 inputs x, ...
4
votes
3answers
207 views

Input/Output format, scoring, and the status of The Powder Toy

The Powder Toy is a falling-sand game with enough functionality to be classified as a interesting take on fungeoids. However, there are a few problems with this. Input/Output Programs (simulations) ...
6
votes
2answers
191 views

Definition of a Function in Concatenative Languages

Concatenative languages are languages where juxtaposition of functions represents composition. Programs consist of the primitives in the language combining to form a large function which takes program ...
16
votes
1answer
303 views

What are the standard requirements for answering a [random] challenge?

There are lots of of challenges involving randomness. However, not all languages have a built-in method for randomness. Some languages, like python or most golfing languages make it really easy. You ...
2
votes
2answers
198 views

Voting to close question if it's unclear for some?

There are cases where a challenge asks for some specific inputs/outputs, for instance an array where each element is a tuple or something similar. This might be perfectly fine and clear in some ...
15
votes
1answer
145 views

Are bots allowed in The Nineteenth Byte?

People seem to know that active chat bots are prohibited in TNB, but I don't see that written anywhere. Is this indeed so? And if so, are pure listening bots that never speak also prohibited? These ...
22
votes
10answers
532 views

Are baseline submissions serious contenders?

One of PPCG's oldest rules, mentioned in What topics can I ask about here?, is that all answers to challenge questions must: Be a serious contender for the winning criteria in use. For example, an ...
0
votes
1answer
175 views

Why is this non-serious-contender answer still around, despite a “helpful” flag?

As explained in our policy on serious contenders, this answer is not a serious contender because it is deliberately crafted to get a low score (the only way it could win is if there were no other ...
2
votes
0answers
56 views

Default for fastest-code or restricted-time challenge

Because it would be hard for newcomers to find and read all of the meta questions about this topic, I suggest having a common post for all of them. It would be easier for moderators to point newcomers ...
26
votes
4answers
336 views

ASCII Art Output Rules

I know there's a desire on PPCG for challenges to be flexible in terms of what they allow for input and output. However, I think there is an argument to be made that ascii-art is a special case, and ...
11
votes
1answer
313 views

Multiple answers in a single post

Is is acceptable to bunch together multiple answers in a CW post just because the challenge is trivial? See e.g. https://codegolf.stackexchange.com/a/151280/43319.
1
vote
1answer
48 views

How many winners can a challenge have?

I'm currently writing a challenge which forces people to work in pairs to participate in the challenge. However, this leads to the question, who wins in the pair? I'm thinking about (ideally) having ...
16
votes
1answer
1k 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 ...
11
votes
1answer
248 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 ...
6
votes
2answers
360 views

Is outputting a Maybe acceptable in Haskell? [duplicate]

The vote on this output option has moved here. Haskell has a very strong type system, so there is a type called Maybe to work around some restrictions. The ...
11
votes
1answer
259 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 ...
12
votes
0answers
262 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 ...
2
votes
1answer
157 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
714 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, but the translation ...
0
votes
1answer
75 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, ...
11
votes
3answers
352 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 (...
0
votes
0answers
26 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 ...
2
votes
4answers
66 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 ...
10
votes
4answers
596 views

Is the current time or date with modulo random enough?

Several questions have recently been asking about random. I see a lot of answers in those questions using the date not as a seed but as the random number that is then modulo'ed. Seen in Java: ...
2
votes
1answer
97 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
62 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 ...
85
votes
4answers
2k 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 ...
16
votes
1answer
327 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
286 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
265 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?
6
votes
2answers
166 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 ...
7
votes
4answers
264 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. ...
1
vote
1answer
166 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 ...
15
votes
1answer
219 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, ...
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 ...
58
votes
7answers
830 views

A proposal to combat Meta Bloat™: The Big Consensus Freeze

I believe it's a widely acknowledged problem in this community that the number of meta posts a new user needs to know to figure out all the rules has long got out of hand. We require certain answer ...
1
vote
0answers
68 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
62 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 ...
2
votes
1answer
85 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 ...
0
votes
1answer
231 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 ...
1
vote
1answer
101 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
121 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 ...