My introduction to metrics

I started my first post-college job in 1981, working at a startup spun off from the University of Illinois. My first job as a Unix and C programmer was to write a program to count lines of code and comment in C programs.

My first release drew complaints. Some people used K&R-style placement of blocks, as in:

if (a = 5) {  
}

But some used the Proper Style:

if (a = 5)  
{
}

The former complained that the latter got "credit" for three lines of code, while they only got credit for two.

I had to add an option (-} as I recall) to make lc treat brackets alone on a line as whitespace.

I count that experience as the beginning of the road that led to "How to Misuse Code Coverage".