Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

kloc

5 views
Skip to first unread message

io_x

unread,
May 31, 2012, 8:20:05 AM5/31/12
to
what does it mean "1 kloc"? 1000 lines?
thank you


pete

unread,
May 31, 2012, 10:41:02 AM5/31/12
to
io_x wrote:
>
> what does it mean "1 kloc"? 1000 lines?
> thank you

Yes.

1000 Lines Of Code

--
pete

Joseph Power

unread,
May 31, 2012, 11:45:26 AM5/31/12
to
KLOC = 1000 lines of code; generally used as a productivity metric.

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.

io_x

unread,
May 31, 2012, 2:51:52 PM5/31/12
to

"Joseph Power" <joep...@mindspring.com> ha scritto nel messaggio
news:364fs7174hssena49...@4ax.com...
:)
Ciao, grazie...


io_x

unread,
May 31, 2012, 2:54:14 PM5/31/12
to
"pete" <pfi...@mindspring.com> ha scritto nel messaggio
news:4FC782...@mindspring.com...
Grazie


Daniel Pitts

unread,
May 31, 2012, 2:58:43 PM5/31/12
to
I've written 10 lines, removed 250, and edited 15.

I've fixed 5 bugs, but created 2 more.

The feature set was not affected.

Was I productive?

BGB

unread,
Jun 2, 2012, 12:55:05 AM6/2/12
to
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?", ...).

0 new messages