Hot answers tagged

132 votes

Golf you a quine for great good!

Hexagony, side-length 17 16, 816 705 bytes ...
Martin Ender's user avatar
107 votes
Accepted

Program that creates larger versions of itself (quine-variant)

GS2 (8636bd8e), 0 bytes This prints a single newline, which prints two newlines, which prints three newlines, et cetera. Try it online!
Dennis's user avatar
  • 210k
88 votes

Golf you a quine for great good!

Hexagony, side length 11, 314 bytes ...
DELETE_ME's user avatar
  • 17.2k
82 votes

Golf you a quine for great good!

Brain-Flak, 9.8e580 1.3e562 9.3e516 12818 11024 4452 4332 4240 4200 4180 3852 3656 3616 3540 2485 + 3 = 2488 bytes Now fits in the observable universe! ...
Wheat Wizard's user avatar
  • 96.5k
73 votes

Make an error quine!

Windows .EXE, 248 bytes ...
MD XF's user avatar
  • 13.8k
66 votes

A "cheating" quine

Zsh, 4 bytes <$0 The Z shell has feline functionalities built in. The fourth character is a linefeed. Try it online! The code does not depend in any way on ...
Dennis's user avatar
  • 210k
54 votes

Golf you a quine for great good!

Javascript ES6 - 21 bytes $=_=>`$=${$};$()`;$() I call this quine "The Bling Quine." Sometimes, you gotta golf in style.
Mama Fun Roll's user avatar
54 votes

Write a program that sees the New Year in itself

awk, 4 bytes The structure of an awk program is pattern { action }. If pattern evaluates to true, { action } is performed. If { action } is omitted, the default is ...
James Brown's user avatar
51 votes

Golf you a quine for great good!

Vim, 11 bytes q"iq"qP<Esc>hqP iq"qP<Esc>: Manually insert a duplicate of the text that has to be outside the ...
udioica's user avatar
  • 2,681
49 votes

A "cheating" quine

Bash, 6 bytes cat $0 Basically.
a spaghetto's user avatar
  • 11.2k
48 votes

Golf you a quine for great good!

Hexagony, side length 15 14 13 12, 616 533 456 383 bytes After several days of careful golfing, rearranging loops and starting over, I've finally managed to get it down to a side 12 hexagon. ...
Jo King's user avatar
  • 47.1k
47 votes

Stack Exchange Vote Counter

jQuery + JavaScript, 85 bytes $.get("//api.stackexchange.com/posts/82610?site=codegolf",d=>alert(d.items[0].score)) ...
NoOneIsHere's user avatar
  • 2,201
45 votes

Golf you a quine for great good!

Cubix, 20 bytes 3434Qu$v@!<"OOw\o;/" Almost got the \o/... Net: ...
Luke's user avatar
  • 4,803
43 votes

Radiation Hardened Quine

Befunge-98, 884, n = 14, score ≈ 2.636 ...
Martin Ender's user avatar
43 votes

Fastest Mini-Flak Quine

Mini-Flak, 6851113 cycles The program (literally) I know most people aren't likely expecting a Mini-Flak quine to be using unprintable characters and even multi-byte characters (making the encoding ...
ais523 - high effort answers's user avatar
40 votes
Accepted

Mutually Exclusive Quines

><>, Score: 41+41 = 82 Edit: both contained a 3. Fixed 'd3*}>a!o-!<<8:5@lI55>@z:5ll55>>q:>|q::|, and ...
Jo King's user avatar
  • 47.1k
38 votes

Golf you a quine for great good!

Vim, 17, 14 keystrokes Someone randomly upvoted this, so I remembered that it exists. When I re-read it, I thought "Hey, I can do better than that!", so I golfed two bytes off. It's still ...
DJMcMayhem's user avatar
  • 58.9k
38 votes

A "cheating" quine

UNIX executable loader, 10 bytes #!/bin/cat If you don't care about spam on standard error, you can make it one byte shorter: ...
Joshua's user avatar
  • 3,446
38 votes

2016 Time Capsule String: How Versatile Is Your Language?

Glypho, 74 + (74 - 36) = 112 1. Run (74 bytes) !!#%QTQT@=A@$!!$)()*!&))+...1449:@HILOQZ\\^`````````eefmpx|||{~~~~~~y~|~ ~ 2. IO (36 bytes) ...
Martin Ender's user avatar
37 votes

Radiation softened quine

Lenguage, 4.54×10761 bytes It has this number of null characters: ...
jimmy23013's user avatar
  • 36.9k
37 votes

2 Cats in a Quine

V, 2 + 2 == 4 bytes 2i2i Try the quine! Try the cat! A is 2i B is also 2i How does it ...
DJMcMayhem's user avatar
  • 58.9k
36 votes

Cyclic Levenquine

Gol><>, 252 167 bytes ...
Jo King's user avatar
  • 47.1k
32 votes

Confound my attempts to solve the halting problem

brainfuck, 6013 4877 4376 bytes Edit: -1136 bytes. Switched to a better way of generating the data for the quine Edit2: -501 bytes. Revisited my self-interpreter and cut it down a couple of hundred ...
Jo King's user avatar
  • 47.1k
32 votes

Take a stand against long quine lines

Lenguage, line length 0, ≈ 1.01 × 10805 bytes The source code consists of ...
Dennis's user avatar
  • 210k
31 votes

Golf an Anagram Quine

Pyth, 2 bytes )( Outputs () Try it online! ...
Rod's user avatar
  • 18.4k
31 votes
Accepted

A quantum quine

Backhand, Score 0, 137 bytes ...
Jo King's user avatar
  • 47.1k
30 votes

Golf you a quine for great good!

C, 64 60 bytes main(s){printf(s="main(s){printf(s=%c%s%1$c,34,s);}",34,s);} This may segfault on 64-bit systems with some compilers, such as newest Clang,...
MD XF's user avatar
  • 13.8k
30 votes

Golf you a quine for great good!

Hexagony, 261 bytes, side length 10 ...
Jo King's user avatar
  • 47.1k

Only top scored, non community-wiki answers of a minimum length are eligible