How bad is SLOC (source lines of code) as a metric? -


we documenting our software development process. technical people, pretty easy: iterative development internal milestones every 4 weeks, external every 3 months.

however, purpose of exercise expose things our project management in terms can understand. specifically, these non-technical managers need metrics can understand.

i understand our options metrics , have proposed whole set (requirements met , actual costs vs. budgeted costs 2 of favorites). however, have old hands involved , tend hang onto metrics sloc.

i understand temptation of sloc: seems easy non-software people understand , seems closest analog of physical thing (it's counting punched cards in old days!).

so here's question: how can explain dangers of sloc non-technical person?

here's concrete motivation: work on mature deployed system has years of history behind it. add features, sloc tends stay approximately level or decrease (refactoring removes old / dead code, new features adjustments of existing, etc). non-programmer manager, non-increasing sloc in development project perplexing @ best....

clarifying in response recent answer below: remember, i'm arguing sloc bad metric purposes of measuring project progress. i'm not arguing number that's not worth collecting. requires extensive context useful , program managers don't have context.

someone said :

"using sloc measure software progress using kg measuring progress on aircraft manufacturing"

it totally inappropriate encourages bad practices :

  • copy-paste-syndrome

  • discourage refactoring make things easier

  • stuffing meaningless comments

  • ...

the use can estimate how paper put in printer when printout of complete source tree.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -