50
votes
No strings (or numbers) attached
Funciton, 1222 bytes
Apart from numeric literals, there are two ways I can produce a value (any value at all) in Funciton: stdin and lambda expressions. Stdin is a single box while a full lambda ...
34
votes
Orientation Oriented Programming
05AB1E, 5 14 15 18 rotations (5 6 7 8 unique, 61 213 1488 4367 bytes)
...
27
votes
Cramming The Gramming - Twelve Task Tweet
CJam, 8 9 tasks in 140 bytes
First off, here is a script you can use to sort your solutions and tell you which ones will fit into the tweet:
...
26
votes
No strings (or numbers) attached
JavaScript, 144 141 140 138 132 125 123 bytes
With help from @edc65, @Sjoerd Job Postmus, @DocMax, @usandfriends, @Charlie Wynn and @Mwr247!
...
23
votes
21
votes
Accepted
No strings (or numbers) attached
Hexagony, 13 bytes
1
2
3
4
5
6
7
8
9
10
42
Try it online!
In Hexagony, 0 through 9 are functions that multiply the current ...
19
votes
Cramming The Gramming - Twelve Task Tweet
Pyth, 9 tasks in 138 bytes
This took quite a while.
I think 9 tasks is the limit for Pyth. Including the next shortest program (Sator Square) results in 160 bytes. Golfing 20 bytes is quite ...
16
votes
No strings (or numbers) attached
Mouse-2002, 27 26 17 14 bytes
The first snippets push 0-10, and ZR+ pushes 25 then 17 and <...
15
votes
14
votes
Orientation Oriented Programming
perl -M5.010 -Mbigint, 8 orientations, 8 18 tasks, 1644 2840 bytes
...
13
votes
13
votes
Different tasks, same characters
Jelly, 19 18 17 characters
Task 1
Ḟþe*S
×5µḊḟÆRm3ḣ³
Try it online!
Task 2
5µḊḟÆRm3ḣ³Ḟe*S
×þ
Try it online!
Task 3
<...
13
votes
OOP: Overlapping Oriented Programming
Brachylog, 50 46 bytes
{Ċ∧Lċ₂l∧Lgj:?z{tT∧?h~cṪhlI∧ṪbhTl:I+-₁:I↔}ᵐ:L}
Try it online!
Decompress:
...
12
votes
No strings (or numbers) attached
Perl 5, 86 75 71 66 bytes
All ^Fs are literal control characters (0x06 in ASCII), and hence a single byte.
...
12
votes
No strings (or numbers) attached
Brainfuck, 70 bytes
+
++
+++
++++
+++++
++++++
+++++++
++++++++
+++++++++
++++++++++
--[>+<++++++]>-
Each line must be run individually.
The first 10 ...
12
votes
No strings (or numbers) attached
Darkness, 339 303 bytes
This is where Darkness really shines. Get it? :~)!
Without printing (replaced the space with \s in the first line since it won't show ...
12
votes
11
votes
Cat, Quine, Hello World
R, Quine + hello, world = cat; 48 + 49 ... 43 + 44 = 87 bytes
Or 75 bytes as internal code of functions and not including function(){} wrappers.
Edit: -14 bytes ...
10
votes
Accepted
Cramming The Gramming - Twelve Task Tweet
Pyth, 9 tasks in 136 bytes
Task 1: 7 bytes
<-F_SQ0
Demonstration
Sort in descending order (_SQ), fold subtraction over ...
10
votes
Accepted
Avoid repeating letters between five simple programs
CJam, 73 bytes
"Obkkh+'Phukc&"7f^
q~m!
ri){'j3+_3++~},:+
lS-el_&
4{_' *4@-Y*('**+}%_1>W%\+N*
Each line is a full program. Try them online: 1 | 2 | 3 | ...
10
votes
10
votes
No strings (or numbers) attached
MATL, 30 bytes
O
l
H
I
K
Kl+
HI*
KYq
HK*
IH^
K:s
IH^:sI-
H, I, and ...
10
votes
Different tasks, same characters
Mathematica, 60 characters
Task 1: Composites
#/AFF^abcinoruy{};Select[Range[2,9#],!PrimeQ@#&][[;;3#;;3]]&
Task 2: Multiplication Table
...
9
votes
9
votes
No strings (or numbers) attached
PHP, 157 145 91 bytes
First time posting on Code Golf, figured I'd give it a shot. I'll get better eventually :P If you see any obvious (to you) spots where I could save characters, let me know.
...
9
votes
No strings (or numbers) attached
PowerShell, 147 bytes
These use + to implicitly cast things to integers. The later numbers use Enums from the .Net Framework unerpinnings of PowerShell which ...
9
votes
No strings (or numbers) attached
Python 2, 191 159 158 157 156 149 146 bytes
My first submission ever, I hope I got everything right !
Based on the time I spent on this, I guess there's surely a better one for a few of them.
...
9
votes
Pyth Practice 2
59 58 56 bytes
Problem 1:
Problem 2:
Problem 3:
Problem 4:
Problem 5:
Problem 6:
Problem 7:
Problem 8:
9
votes
Different tasks, same characters
MATL, 29 28 26 characters
Task 1 (every third composite number)
6*:tZp~)G:3*q)%G"$]vwm^sl+
Try it online!
Task 2 (multiplication table)
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
multiple-holes × 26code-golf × 14
code-challenge × 10
string × 7
number × 5
math × 4
restricted-source × 4
source-layout × 4
ascii-art × 3
arithmetic × 3
sequence × 2
array × 2
hello-world × 2
decision-problem × 1
number-theory × 1
popularity-contest × 1
primes × 1
quine × 1
matrix × 1
python × 1
atomic-code-golf × 1
brainfuck × 1
generation × 1
physics × 1
logic × 1