Post Closed as "off-topic" by Julian Lachniet, Mego♦, Stewie Griffin, Felipe Nardi Batista, Wheat Wizard occurred Apr 27 '17 at 11:36 Notice removed Reward existing answer by trichoplax occurred Jul 31 '14 at 22:01 Bounty Ended with KSab's answer chosen by trichoplax occurred Jul 31 '14 at 22:01 Notice added Reward existing answer by trichoplax occurred Jul 23 '14 at 22:08 Bounty Started worth 100 reputation by trichoplax occurred Jul 23 '14 at 22:08 Notice removed Draw attention by trichoplax occurred Apr 24 '14 at 12:36 Bounty Ended with captncraig's answer chosen by trichoplax occurred Apr 24 '14 at 12:36 Notice added Draw attention by trichoplax occurred Apr 16 '14 at 15:46 Bounty Started worth 50 reputation by trichoplax occurred Apr 16 '14 at 15:46 4 edited tags | link edited Apr 16 '14 at 14:50 Peter Taylor 40.9k44 gold badges5757 silver badges151151 bronze badges 3 edited tags | link edited Apr 16 '14 at 13:21 Peter Taylor 40.9k44 gold badges5757 silver badges151151 bronze badges Tweeted twitter.com/#!/StackCodeGolf/status/110921234425982976 occurred Sep 6 '11 at 3:44 2 added 115 characters in body edited Sep 5 '11 at 21:31 Mateen Ulhaq 1,1481414 silver badges2828 bronze badges Your job, should you choose to not refuse it, is to write a program that will "golf" a piece of given code in your language of choice. Basic functionality: Remove extraneous whitespace Remove comments 'Advanced' functionality: Combine declarations (int x; int y; int z; to int x, y, z;) Use shorter variations of basic control structures (while(1) is replaced with for(;;)) Move code around (i = 0; while(i < 10) { /* ... */ ++i; } to for(i = 0; i < 10; ++i) { /* ... */ }) Etc Your job, should you choose to not refuse it, is to write a program that will "golf" a piece of given code in your language of choice. Basic functionality: Remove extraneous whitespace 'Advanced' functionality: Combine declarations (int x; int y; int z; to int x, y, z;) Etc Your job, should you choose to not refuse it, is to write a program that will "golf" a piece of given code in your language of choice. Basic functionality: Remove extraneous whitespace Remove comments 'Advanced' functionality: Combine declarations (int x; int y; int z; to int x, y, z;) Use shorter variations of basic control structures (while(1) is replaced with for(;;)) Move code around (i = 0; while(i < 10) { /* ... */ ++i; } to for(i = 0; i < 10; ++i) { /* ... */ }) Etc 1 asked Sep 5 '11 at 19:19 Mateen Ulhaq 1,1481414 silver badges2828 bronze badges