J
Jeffrey C. Dege
Guest
On Tue, 18 May 2004 01:39:11 GMT, Rich Grise <null@example.net> wrote:
But I once had to explain my coding style after some suits had run some
metrics against a large project I'd been the primary programmer for.
The average LOC/method was five.
They thought that was excessive.
But they wondered at the fact that 20% of the methods were one line long.
And got serious heartburn over the fact that nearly 5% of the methods
measured zero lines long.
They could not grasp why we were wasting time writing functions that
had nothing in them.
--
The government solution to a problem is usually as bad as the problem.
- Milton Friedman
I don't get concerned if they're on adjacent pages."Toon Moene" <toon@moene.indiv.nluug.nl> wrote in message
news:40a933f1$0$4927$4d4ebb8e@news.nl.uu.net...
Terje Mathisen wrote:
Jeffrey C. Dege wrote:
I once tried to debug a program that consisted of a single 3500-line
while loop that _would_ have been a state machine, if the programmer
had known what a state machine was.
Hmmm... Wy do I get the feeling that 'tried' is the operative word here?
:-(
"Real Programmers are not afraid of five-page-long do loops ..."
Maybe not, but it sounds more like bravado to me. An _effective_
programmer keeps both ends of his loops on the same page.
But I once had to explain my coding style after some suits had run some
metrics against a large project I'd been the primary programmer for.
The average LOC/method was five.
They thought that was excessive.
But they wondered at the fact that 20% of the methods were one line long.
And got serious heartburn over the fact that nearly 5% of the methods
measured zero lines long.
They could not grasp why we were wasting time writing functions that
had nothing in them.
--
The government solution to a problem is usually as bad as the problem.
- Milton Friedman