Linked Questions
31 questions linked to/from Default for Code Golf: Program, Function or Snippet?
0
votes
0answers
133 views
Does the Python shell count as a “programming language”? [duplicate]
I used the Python shell to answer a question. Is that OK or should I have created a whole program for it?
0
votes
0answers
125 views
Is a function allowed? [duplicate]
Is it allowed to use a function instead of a complete program, in a code-golf question?
(This has probably been asked before, I'm unable to locate the link.)
Asked wrt @agtoever 's query on Output ...
0
votes
0answers
106 views
Are C# LinqPad answers encouraged? [duplicate]
The question Find i^n, given n does not clearly state whether the solution must be a compilable program or can be an expression, neither does it identify where the input shall come from.
This leads ...
1
vote
0answers
53 views
Is boiler-plate code required for challenges? [duplicate]
When solving a puzzle with an appropriate solution, does the programming language standard boiler-plate source code need to be included:
For example, should I include all of this:
...
507
votes
3134answers
274k views
Sandbox for Proposed Challenges
What is the Sandbox?
This "Sandbox" is a place where Code Golf users can get feedback on prospective challenges they wish to post to the main page. This is useful because writing a clear and ...
388
votes
46answers
183k views
Loopholes that are forbidden by default
There are a number of standard loopholes which experienced question-setters seek to explicitly close. However, inexperienced question-setters may unintentionally leave them open, or respondents may ...
104
votes
90answers
29k views
Default for Code Golf: Input/Output methods
It looks like we have a consensus that we want certain defaults for the format which answers are expected in for code-golf. On that poll, the question arose twice, which input/output formats should be ...
89
votes
43answers
21k views
Things to avoid when writing challenges
If there is something that you find annoying / counterproductive / unfair / detrimental / no longer funny in challenges (question posts), describe it in an answer here, and propose a recommended ...
34
votes
5answers
3k views
Definitive policy about answers not meeting the challenge specification
This question has been asked so often, I have no idea what our actual policy is:
Almost-correct answers
Should answers that break the rules be deleted?
Should we flag and delete Not an Answer posts?
...
17
votes
6answers
883 views
Things to consider when creating a challenge
There's a lot to remember to include when writing a challenge for this site. What are some things that are easy to forget?
Return to FAQ index
14
votes
4answers
1k views
Should function literals be allowed when a function is asked for?
I'm arguing with the poster of this answer. The function literal as is doesn't cause the function to be defined, it has to be assigned to a variable, giving it a name or wrapping it like ...
18
votes
4answers
494 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 ...
21
votes
7answers
298 views
Challenge post-mortems
While to-be-posted challenges get feedback in the Sandbox (ideally), we don't usually reflect on challenges after they have run. And while issues and ambiguities in challenges do get pointed out, we ...
17
votes
2answers
363 views
Are functions that only work when called valid as answers?
In Haskell it is possible to define functions that will cause a compiler error unless they are called elsewhere in the program.
For example the following code causes a compiler error
...
21
votes
2answers
2k views
When is code that requires a REPL acceptable?
Question in brief:
For what challenge types and in what circumstances should code that requires a REPL be acceptable in an answer?
There seems to be an understanding in chat that code that only works ...