Linked Questions

0 votes
0 answers
139 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?
m654's user avatar
  • 833
1 vote
0 answers
133 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 ...
ghosts_in_the_code's user avatar
0 votes
0 answers
111 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 ...
Thomas Weller's user avatar
1 vote
0 answers
55 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: ...
Aalawlx's user avatar
  • 191
567 votes
4k answers
329k 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 ...
Sandbox's user avatar
422 votes
54 answers
214k 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 ...
127 votes
115 answers
38k 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 ...
Martin Ender's user avatar
101 votes
49 answers
26k 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 ...
trichoplax is on Codidact now's user avatar
32 votes
5 answers
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? ...
Martin Ender's user avatar
18 votes
6 answers
1k 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
33 votes
3 answers
6k 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 ...
15 votes
4 answers
2k 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 ...
alexia's user avatar
  • 1,796
18 votes
4 answers
522 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 ...
Martin Ender's user avatar
21 votes
7 answers
322 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 ...
xnor's user avatar
  • 144k
18 votes
2 answers
415 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 ...
Wheat Wizard's user avatar
  • 95.5k

15 30 50 per page