Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I've seen the following:

  • CLOC
  • TLOC
  • LOC

When using this esoteric metric what abbreviation is most commonly used?

if you are referring to it as a project metric it is a MMM or M^3 - Meaningless Manager's Metric –  Bill Sep 21 '10 at 21:09
@Bill I'd never heard of an M^3 by that's my new favorite meme. I'll be injecting that into a conversation sometime this week. ;) –  ahsteele Sep 21 '10 at 21:11
Actually, I'd even go as far (and have) to say measuring LOC as anything other than an exercise in trivia is more likely to do harm than good. –  MIA Sep 21 '10 at 21:32
@Jim: it's also useful for quantifying how many places there are for bugs to hide in :-) –  SamB Sep 21 '10 at 21:36
As a metric of scale it arguably serves a purpose since it is difficult to come up with this sort of metric in general, but as a metric of progress, throughput or complexity is is very misleading. –  Bill Sep 21 '10 at 21:47

2 Answers 2

up vote 13 down vote accepted

I've always just seen:

  • LOC (lines of code)
  • KLOC (thousands of lines of code)
LOC and KLOC are the terms I've used the most as well. –  Alan Sep 21 '10 at 21:12

I've always known it to be SLOC - Source Lines Of Code.

That is assuming you only care about the actual code. If you're taking whitespace and comments into consideration (I'd ask why, but then again, we're already talking about lines of code as a metric...) then SLOC wouldn't be the right term.


This site is currently not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .