Post Closed as "off-topic" by Julian Lachniet, Mego, Stewie Griffin, Felipe Nardi Batista, Wheat Wizard
    Notice removed Reward existing answer by trichoplax
    Bounty Ended with KSab's answer chosen by trichoplax
    Notice added Reward existing answer by trichoplax
    Bounty Started worth 100 reputation by trichoplax
    Notice removed Draw attention by trichoplax
    Bounty Ended with captncraig's answer chosen by trichoplax
    Notice added Draw attention by trichoplax
    Bounty Started worth 50 reputation by trichoplax
4 edited tags
| link
3 edited tags
| link
    Tweeted twitter.com/#!/StackCodeGolf/status/110921234425982976
2 added 115 characters in body
source | link

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
source | link