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 [rules]

Indicates you are proposing new rules or asking for clarification on other ones.

-1
votes
4answers
188 views

If there is “a winner for every language” in a code golf challenge, does competitiveness matter?

The consistent attitude with regard to the golf language situation is that for every challenge, each language is a category, and subsequently there is a 'winner' for each language. This is also a very ...
0
votes
2answers
183 views

If we find a programming language in the Library of Babel, can we use it?

The Library of Babel is a huge library with many books. For example, the book titled ",fkwpival.vbfz" defines code golf on page 29 code golf is a type of recreational computer programming ...
7
votes
1answer
209 views

What is the consensus on built ins?

Originally on this challenge I banned built in matrix functions but people complained about it. I then removed the ban but there were few interesting answers given and some people complained and said ...
7
votes
2answers
193 views

Does output count if part of it scrolls off the screen?

Let's consider a QBasic solution to FizzBuzz. The code works correctly, printing the required output from 1 all the way up. The problem is, since there's a lot of ...
7
votes
0answers
316 views

Should I accept an answer to a question I cannot validate?

Based on information in this post I feel I should try and validate all answers to my challenges. That hasn't proved too hard so far which is good, but Dennis's answer here technically wins the ...
1
vote
1answer
284 views

What is the purpose of “header” and “footer” for C++ submissions using TIO?

What are the rules for using c++ in code golf? In TIO, there is a header section and a footer section. Can you put your #includes in the header section? Do you use this template? ...
14
votes
1answer
143 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 ...
26
votes
4answers
328 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 ...
3
votes
1answer
78 views

Requiring non-builtin answers [duplicate]

Ever since PPCG was created, answers using builtins have been an issue for challenge writers. Sometimes, an interesting challenge can be posted, only for some languages (not necessarily golfing ...
2
votes
2answers
103 views

Encoding data in flexible inputs

Most challenges that take a true/false or right/left or something like that input allow you to pick any two distinct values for these inputs. Recently, this answer came up. Clever use of this ...
1
vote
0answers
81 views

Rules on blockchain-based languages?

What are the specific rules for smart-contract languages (such as solidity) which run in a blockchain (and are considered languages because they can compute primes and that)? Those languages are full ...
2
votes
1answer
158 views

How should a full program in R be invoked?

Related to the discussion in this post. There are multiple ways of executing an R-file. Each of these methods have either challenges in input or output. Which are acceptable to count as "Full program"...
4
votes
1answer
190 views

How to score “command-line” flags in Japt

When I first created Japt I was young and innocent, and I didn't know how to use a command line. So I created the interpreter with HTML and incorporated the JavaScript right into that. As Japt grew ...
2
votes
1answer
77 views

Languages with rapidly changing version

I have been considering the creation of a julia based golfing language. Proposed name: Jules. In implementation it would effectively resolve every program into a ...
1
vote
3answers
109 views

Should Proxy Usage Be Included in Byte Counts?

Using this challenge as an example and this JavaScript solution, you can see that Kaiido had to include the following additional 49 bytes in order to be able to retrieve the images from XKCD's servers:...
32
votes
4answers
406 views

If languages are defined by their implementations, how do we judge answers that can't run on any existing computer?

It's a fairly long-standing principle of PPCG that languages are defined by their implementations; in other words, the language specification is entirely ignored, and we look at the behaviour of an ...
16
votes
2answers
295 views

If code fails to compile, but runs anyway, does that count as executing without error?

Here's a situation that came up recently in chat, and I realised I'm not sure what our rules are. A few challenges require code to run without crashing/erroring. As such, a runtime error would make ...
11
votes
3answers
427 views

What outputs should I allow for decision problems?

I'm looking for opinions on what outputs to allow as the Yes and No outputs on decision-problem challenges. The goal isn't to make a policy, but to help with a decision I often have to make when ...
-1
votes
1answer
114 views

Possible Quine Loophole [duplicate]

I am working on a golfing language, and I think I have figured out a way past the "a program may not read it's own source code as input" rule. The idea is simple: every time a command is executed, ...
0
votes
0answers
53 views

In code-golf is it always ok to print ASCII digits when an integer is asked for? [duplicate]

When the question clearly asks for an integer is it always OK to just print the ASCII digits of the integer without actually generating the integer value? The consensus is yes. It's the programs/...
8
votes
2answers
170 views

Character encoding-based rules with language without encoding

Oftentimes people will ask challenges that have rules hinging on the characters encoded by the source file (see restricted-source). For example, "Your program may not contain the letter ...
33
votes
13answers
2k views

New users' guides to golfing rules in specific languages

What are the most important rules a first-time golfer in a given language should know? For instance, how do golfed programs usually take input and output? Each language should have a single CW answer ...
58
votes
7answers
820 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 ...
0
votes
0answers
47 views

What criteria must a programming language fit? [duplicate]

On the default loopholes there is an answer that forbids making languages that are made specifically for a challenge. This is definitely a good idea. However, there are loopholes even to this. A user ...
7
votes
1answer
242 views

If your answer is acts differently depending on context, how safe do you have to be?

This is kind of a follow-up to / re-asking of "Should point-free function expressions be allowed when a function is asked for?" with specific reference to the only language I know how to golf in, j, ...
4
votes
1answer
276 views

Answers written in “joke” languages [duplicate]

As an answer to this question, I wrote an answer in the "programming language" 2014 (screenshot). The answer was deleted, accompanied with this note: I'm temporarily removing this post in ...
1
vote
1answer
58 views

Full program in Clojure

This challenge requires us to create a "full program" that produces an infinite loop, and never outputs. The problem is, I'm not sure what's considered a full program in Clojure. If I were writing ...
10
votes
2answers
807 views

Codegolf rules and boundaries

So last time, I was hanging on codegolf, and came across the question Print the digital root, where one guy replied here with a one-byte code. Of course, it takes advantages of the built-in and ...
3
votes
1answer
82 views

Are questions targeting non-standard computer platforms allowed/wanted?

My question is related to this one. Are questions/challenges explicitly targeting non-standard computing platforms such as FPGAs allowed? If yes: Are they wanted or welcome here or are they ...
8
votes
1answer
142 views

Is it OK to define an overloaded function?

Sometimes it would be quite useful in some languages to define two overloaded functions/methods as one answer. That is, instead of doing this (using Java as an example): ...
10
votes
1answer
338 views

Are languages targeting FPGAs or other non-standard/non-sequential computing platforms acceptable?

So far, almost all submissions on this site are ones that target "standard" computers, namely devices that execute code in a typically linear fashion, with a standard variety of inputs/outputs (...
9
votes
1answer
333 views

Case Sensitive Strings

Since this isn't explicitly codified anywhere, and was sparked by discussion surrounding my recent challenge, I figured I'd bring it up here for consensus before modifying the tag. Related: string ...
5
votes
1answer
136 views

Should a JavaScript image-processing submission support CORS?

A clarification I'd like to have is whether JavaScript submissions for image-processing should support Cross-Origin Resource Sharing. Specifically, it requires setting the ...
15
votes
2answers
1k views

How should vim answers be scored?

I like vim a lot. I've been golfing with it a lot recently. We already have clearly established that vim is a programming language, but there aren't any clear rules on how to score vim answers. The ...
6
votes
1answer
202 views

Can I set a challenge using Box-256?

Re-edited for further clarify: http://box-256.com/ is an on-line game in which one codes in a form of assembly to solve the puzzles presented on there. Can we ask questions on this site which are ...
8
votes
2answers
234 views

On-topic to ask for help with an pre-existing code golf challenge from another site?

There is a code golf challenge on a foreign (not related to Stack Exchange) site with which I have a problem. The challenge is designed for Python 3 and has a length limit of 150 characters. I ...
15
votes
4answers
411 views

Should answers have to handle invalid inputs?

I'm trying to get advice on how to make my challenges better. One rule that I feel like I'm always specifying is what to do when an invalid input is given. There's really two main paradigms to take ...
14
votes
3answers
379 views

Should language-specific code golf challenges be explicitly disallowed?

In light of a recent code golf challenge in which the specification restricts participation to JavaScript, I think it's time we revisited making a hard rule about language-specific golfs. We may ...
13
votes
2answers
2k views

Clarifying “serious contender” in the help center

The help center says: All solutions to challenges should: Correctly implement the required specification. Be a serious contender for the winning criteria in use. For example, an entry to ...
4
votes
2answers
448 views

PHP and “STDIN or an acceptable alternative”

I had a few discussions regarding to use or not to use STDIN in answer written in PHP. Reading from STDIN is very expensive in ...
14
votes
2answers
337 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 ...
10
votes
1answer
243 views

Are Mathematica's datasets valid?

I, being an avid Mma user, sometimes use its many datasets (such as ElementData) for golfing purposes. However, these require the Wolfram Research servers to have ...
7
votes
2answers
275 views

Should a character encoding that can't actually be used by a compiler/interpreter be allowed?

Suppose you are answering a code-golf challenge in a language whose interpreter can only use UTF-8. Say you have a program that uses some code points in the range 128-255, but not higher. Would it ...
12
votes
4answers
522 views

Can I write a golfing library?

(This might be a duplicate of another question but all of its answers were vague nonanswers, and I can't find it again, so here goes...) I like python3 and I'm quite good at it; it's rather verbose ...
22
votes
1answer
1k views

What does “taking no input” mean for a program?

Fixed output challenges usually state that the program "must take no input". I usually interpret this as "The standard input is empty", but after thinking about this, there are actually several valid ...
10
votes
1answer
154 views

Are Vim script solutions that does not print the output but starts a vim session with output legal?

I wrote this answer in this challenge using Vim script. I think I was really creative and got very proud of my solution. But I am not so sure if this is legal because this program does not print its ...
9
votes
1answer
151 views

Duplicates on other SE sites

After noticing that our site hasn't had a challenge on the Coin Problem, I recently posted one. However, it was pointed out that the challenge was posted on Stack Overflow back in the day when ...
16
votes
2answers
453 views

Are compiler-specific submissions allowed?

For example, in a c++ submission, this is valid if you use g++ #include <iostream> main() { std::cout << "Hello world!"; } but in any other ...
4
votes
1answer
146 views

Why the mixed response?

I recently posted my first puzzle and was received with mixed responses. I know that the puzzle itself may look trivial, and in a way it is, but I think it's presented correctly, the objective is ...
5
votes
1answer
238 views

Should point-free function expressions be allowed when a function is asked for?

Should an expression evaluating to a function count as a function for the purpose of providing a solution when a function is asked for? An earlier question on meta seems to indicate a consensus that ...