The Best Code is No Code At All

I agree 100% with Jeff. Less is by far better. I am Delphi programmer and work on the following basis.

  1. Get the job done. (a / b = …) [10% of the code] (Customer is 75% happy.)
  2. Ensure user input is correct. (b is not zero, null, 0 or what ever zero is not allowed.) [20 % of code.] Customer is 90% happy.
  3. Add a progress bar [3% of Code.] Customer is 100% happy.
  4. Speed the whole process up [20% of the code, as I have to write custom code for this procedure] (Customer is still 100% happy, although I think I am very clever saving him 10 seconds every day.)
  5. And if I was M$ I would have design a cool user interface that would have slowed down everything by a factor of 10. [47% of Code] (Customer 50% happy, but me daughter of 14 thinks it looks cool!)

The fact of the matter is that 33% of the code has done the job 100%!