Linked Questions

0
votes
0answers
134 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
109 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: ...
532
votes
3473answers
289k views

Sandbox for Proposed Challenges

This "sandbox" is a place where Code Golf users can get feedback on prospective challenges they wish to post to main. This is useful because writing a clear and fully specified challenge on ...
401
votes
47answers
193k 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 ...
107
votes
96answers
31k 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 ...
94
votes
46answers
22k 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 ...
33
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
925 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
15
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
502 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
304 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 ...
21
votes
3answers
1k views

Welcome to Code Golf and Coding Challenges Stack Exchange!

What is this site? This is a place to host recreational coding challenges, such as code golf. We are unlike most sites in the Stack Exchange network. We are not a question-answer site, nor are we a ...
17
votes
2answers
368 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 ...

15 30 50 per page