Linked Questions
15 questions linked to/from Shortest code to produce infinite output
-2
votes
18answers
1k views
Shortest program to print “:)” until the end of time [duplicate]
Task:
Make a program that prints a smiley (:)) indefinitely.
Rules:
Your program must print :) as fast as possible until ...
210
votes
379answers
51k views
Golf you a quine for great good!
Using your language of choice, golf a quine.
A quine is a non-empty computer program which takes no input and produces a copy of its own source code as its only output.
No cheating -- that means ...
130
votes
515answers
40k views
Shortest infinite loop producing no output
Your task is to create the shortest infinite loop!
The point of this challenge is to create an infinite loop producing no output, unlike its possible duplicate. The reason to this is because the code ...
156
votes
402answers
29k views
Implement a Truth-Machine
A truth-machine (credits goes to this guy for coming up with it) is a very simple program designed to demonstrate the I/O and control flow of a language. Here's what a truth-machine does:
Gets a ...
286
votes
151answers
98k views
Tips for golfing in Python
What general tips do you have for golfing in Python? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to Python (e.g. "remove comments" is ...
87
votes
108answers
17k views
Shortest code to produce non-deterministic output
You need to produce output that is non-deterministic.
In this case, this will be defined to mean that the output will not always be the same result.
Rules:
A pseudo-random number generator that ...
29
votes
111answers
10k views
Scream very loudly
Write a script that outputs A to stdout infinitely.
There shold be no newlines or seperators between the characters
Standard loopholes apply
This is code-golf. ...
48
votes
45answers
6k views
Tips for golfing in PowerShell
What general tips do you have for golfing in Windows PowerShell? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to PowerShell (e.g. "...
17
votes
38answers
1k views
Lolololololololololololol
Let us take a break from the brain-wrecking questions and answer some of the simpler ones
You have recently read something extremely funny, and want to express your laughter to the world! But how can ...
29
votes
27answers
5k views
Ah, why is there a bug in my program?
This challenge is inspired by @LuisMendo's MATL answer to my "binary multiples" challenge.
Task
Pick a code-golf challenge that is open and that has been posted before this one; let me call it the "...
20
votes
21answers
5k views
6
votes
49answers
9k views
Find the absolute value of a number without built-in functions [closed]
The challenge is to take any real number as input and output or return the absolute value. You may not use any built-in functions other than those dealing with input and output/returning. This is code ...
14
votes
13answers
837 views
Tips for golfing in QBasic
What general tips do you have for golfing in QBasic? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to QBasic (e.g. "remove comments" is ...
33
votes
3answers
877 views
Build a golfing language with me
A lot of PPCG users helped with the creation of this challenge, both in chat and the Sandbox, specifically Martin Ender, AdmBorkBork, Emigna and user202729
Our community has found it necessary to ...
10
votes
3answers
2k views
What is the shortest infinite loop statement in Java?
I'm working on a golf for Java and I need an infinite loop. Obviously, I don't want to spend any more bytes than I have to, especially in such an expressive language.
Assuming I have some code I want ...