92 votes

Unfolding the Hexagony source code

Hexagony, 271 bytes I present to you, the first 3% of a Hexagony self-interpreter... ...
Martin Ender's user avatar
59 votes

From Programming Puzzles to Code Golf

Python 2, 48 47 bytes -1 byte thanks to Erik the Outgolfer print' 'and'Programming Puzzles'or'Code\40Golf' Try it online! ...
Rod's user avatar
  • 18.4k
29 votes

From Programming Puzzles to Code Golf

Jelly, 17 bytes “Ñ1ɦ+£)G“½ċṭ6 Ỵ»Ṃ Try it online! How it works As in the other Jelly answer, Ñ1ɦ+£)G and ...
Dennis's user avatar
  • 210k
27 votes

End the tabs versus space war

Vim, 37, 34, 33, 32 bytes :%s/\t/ /g|%norm ^hr/hv0r*r/ Try it online! Note that this requires a trailing carriage return (enter) in vim, although not in the ...
DJMcMayhem's user avatar
  • 58.9k
26 votes

From Programming Puzzles to Code Golf

C, 64 62 53 52 bytes f(){puts(*" "?"Programming Puzzles":"Code\40Golf");} Try it Online! Uses the fact that C strings end with a null character
math junkie's user avatar
  • 7,227
23 votes

Get rid of whitespace on otherwise empty lines

Retina, 5 bytes %G`\S Try it online! A not so obvious approach rewards us with a better score :) Explanation G indicates ...
Leo's user avatar
  • 12.4k
22 votes

From Programming Puzzles to Code Golf

05AB1E, 15 bytes ”ƒËŠˆ”" "v”–±ÇÀ Try it online! Explanation ...
Emigna's user avatar
  • 52.9k
22 votes

Ungolf my tinylisp code

tinylisp, 1022 bytes ...
emanresu A's user avatar
  • 35.6k
20 votes

Figure and Ground

Jelly, 20 bytes Figure “¦ĠȮ“©ụd» Ṃ Nine trailing spaces. Try it online! Ground “ ¦ĠȮ“©ụd»Ṃ No trailing ...
Dennis's user avatar
  • 210k
19 votes
Accepted

Print a Negative of your Code

CJam, 4 x 4 (8 non-spaces) L _ { _ _ } _ p Try it online in the CJam interpreter. Output { _ _ } { _ _ } How it ...
Dennis's user avatar
  • 210k
19 votes

Write a Stack Exchange compliant brainfuck explainer

brainfuck, 811 775 709 701 bytes ...
tjjfvi's user avatar
  • 7,290
18 votes

Unfolding the Hexagony source code

CJam, 56 52 50 48 bytes My first thought was, "hey I already have code for this!" But then I couldn't be bothered to pull the necessary pieces together from the Ruby code, especially because they ...
Martin Ender's user avatar
18 votes

Significant Whitespace: Cops

Haskell, 100 bytes, cracked by nimi main=interact$iddoidlinesidwordsdoidoidoid=doiddoid<-dooiidoid<-dooiddoiddodoid This is a full program and a dadaistic ...
Laikoni's user avatar
  • 26.1k
18 votes

Get rid of whitespace on otherwise empty lines

sed, 6 bytes /\S/!g Try it online! ...
Riley's user avatar
  • 11.7k
17 votes
Accepted

Create a codeblock tool

V, 4 bytes Î4É Try it online! (Note the trailing space) V is encoded in Latin1, where this is encoded like so: ...
user41805's user avatar
  • 13.1k
15 votes
Accepted

Get rid of whitespace on otherwise empty lines

Japt, 10 8 6 5 4 bytes mx1R Try it online! Explanation ...
Tom's user avatar
  • 3,108
15 votes

From Programming Puzzles to Code Golf

CJam, 38 bytes " ""Programming Puzzles""Dpef!Hpmg":(? Try it online! or with spaces removed Explanation ...
Business Cat's user avatar
  • 9,147
14 votes

Figure and Ground

05AB1E, 15 14 bytes Figure 'ŠÂ,'í¶ Try it online! Ground ' ŠÂ,'í¶ Try it online! Uses the CP-1252 encoding. Note ...
Adnan's user avatar
  • 44.3k
14 votes

Figure and Ground

Python 2, 53 bytes Replace · with space in both answers: ···················· print'······figureground'[6:12]# Prints ...
Lynn's user avatar
  • 68.1k
13 votes

Aligning Lines!

APL (37) APL just isn't very good at string processing (or I'm not good at golfing, of course). {⌽∊R,¨' '/⍨¨(⌈/-+)⍺⍳⍨¨⌽¨R←S⊂⍨S=⊃S←⌽⍵} This takes the character as ...
marinus's user avatar
  • 31.2k
13 votes
Accepted

Unfolding the Hexagony source code

Pyth, 57 54 50 49 48 46 V+UJfgh*6sUTlK-zd1_UtJ+*d-JNjd:.[K\.^TJZ=+Z+JN Test Suite Prints a leading space on each line. This version requires a proof that 10^n >...
FryAmTheEggman's user avatar
13 votes

Significant Whitespace: Cops

C, 475 bytes, cracked by Riley Certain parts of C make it really really easy to see where whitespace should go. The c pre-processor, however, does not. So this code is sort of in two halves: up to ...
rexroni's user avatar
  • 396
12 votes
Accepted

Implement a whitespace golfer

Retina, 9 bytes m`^\d $* Try it online! Note: Trailing space on last line.
Neil's user avatar
  • 165k
11 votes

End the tabs versus space war

Perl, 41 bytes s,␉, ,g;s,^ ( +),/@{[$1=~y| |*|r]}/, Run with the -p flag, like so: ...
Lynn's user avatar
  • 68.1k
11 votes

Reversing of Words

Retina, 7 bytes O$^`\w+ Try it online! Match all words (\w+) sort them with sort key empty string (...
Martin Ender's user avatar
11 votes

Implement a whitespace golfer

Cubically, 69 66 bytes RBR3B~(+50<7?6{+54>7?6{-002+7~?6{(@5*1-1/1)6}}}(-6>7?6&@7+70-4~)6) Try it online! Explanation: First we do this initialization: ...
Kamil Drakari's user avatar
10 votes

Significant Whitespace: Cops

Octave, 69 bytes, SAFE! @(U)eval([85329685312682956148388531268295156241'']) Input format: Newlines can't be inputted directly in the command prompt. Create the ...
Stewie Griffin's user avatar

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