E
Eric Sosman
If you coding style says that the first should really be:
double sumx; // The Sum of the X values
double sumy; // The Sum of the Y values
double sumxx; // The Sum of the square of the X values
double sumyy; // The Sum of the square of the Y values
double sumxy; // The Sum of the product of the X and Y values
Then also allowing only one variable per line isn't as big of a limitation.
Many years ago -- many decades ago, in fact -- I had a colleague
who wrote his code in a style that minimized keypunching time. (See
"many decades," above.) One space, not several, separated his
assembler opcodes from the operands, and from the label if there
was one. Registers were referred to by number, not name, and of
course comments were not to be found anywhere:
L 0,X
L 1,Y
CR 0,1
BNL STORE
LR 0,1
STORE ST 0,MAX
The Management was not happy. "Use register names, not numbers.
Line up the columns. And write comments, dammit, comments!" So
he wrote himself a neatener program that took in his usual source
code and spat out
L R0,X LOAD R0 FROM X
L R1,Y LOAD R1 FROM Y
CR R0,R1 COMPARE R0 TO R1
BNL STORE BRANCH TO STORE IF NOT LOW
LR R0,R1 LOAD R0 FROM R1
STORE ST R0,MAX STORE R0 TO MAX
Dunno why, but something about the added value of the comments
you exhibit reminds me of my long-ago colleague's exploit.