On 5/31/2012 10:45 AM, Joseph Power wrote:
> KLOC = 1000 lines of code; generally used as a productivity metric.
>
I generally use it as a code-size measure (sort of like "mass" or "weight").
but, yes, there is also the next unit up, or the Mloc, which is 1000000
lines of code, which may be used to measure or compare the size of
applications.
> I once had a boss who wanted to know how many klocs we'd written each week.
> Finally one week, in frustration, I wrote "25 lines. But they were the right
> 25."
>
> After that he stopped asking about klocs.
>
I don't measure per-day or per week (and suspect it is likely highly
variable), but can estimate the average growth rate over longer periods
of time.
but, yeah, using it as a productivity measure likely has the side effect
of people writing low-density sprawl-ridden code in order to look better
to bosses ("why use a function when I get paid more to just endlessly
copy/paste the same code all over the place?", ...).