SLOCCount thinks I'm amazing..

TeeJay on 2007-05-15T19:51:29

I've been working for this client between 3 and 5 days a week for about a year and a couple of months - I've had somebody else work with me for 3 of those months.

The result of our labour according to SLOCCount :

Total Physical Source Lines of Code (SLOC) = 29,340 Development Effort Estimate, Person-Years (Person-Months) = 6.95 (83.38) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 1.12 (13.43) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 6.21 Total Estimated Cost to Develop = $ 938,587 (average salary = $56,286/year, overhead = 2.40). SLOCCount, Copyright (C) 2001-2004 David A. Wheeler

Wow!

Very nearly a million dollars!

At a cost of about 80,000 dollars (at a 2:1 exchange rate with GBP).


Interesting sloccount problem...

Alias on 2007-05-16T01:48:35

I really need to check one of these days and see if sloccount ignores POD, __END__ and __DATA__ blocks, and heredocs properly.

Note to self, if not, write Perl::Sloccount.

Secondly, one interesting problem I've noticed is that when my codebases get to around 50,000 lines of code, they stop growing.

It's as if the rate at which problems can be factored out and moved into CPAN modules, plus general refactoring, cancels out the code growth for new features.

That or I guess I might be getting bored with that problem :)

Re:Interesting sloccount problem...

Aristotle on 2007-05-16T14:14:00

I really need to check one of these days and see if sloccount ignores POD, __END__ and __DATA__ blocks, and heredocs properly.

… SelfLoader?

Re:Interesting sloccount problem…

Aristotle on 2007-05-16T14:18:08

Test::Inline? Test::Pod::Snippets?

Re:Interesting sloccount problem...

TeeJay on 2007-05-17T13:28:22

Yeah - This is 40k LoC over several sets of modules.

The longer I work on them the less the LoC grows.. sometimes the LoC shrink as I refactor the code to be better or replace a wheel I reinvented with one from CPAN.

GIGO

slanning on 2007-05-18T12:54:00

All it tells me is that SLOCCount is based on false premises. It's just stupid to think that a year of programming is worth a million dollars. Who wrote SLOCCount? A programmer, duh! :) I'm sure you can find ways of arguing that secretaries are worth a million dollars (most are worth way more than they earn, that's for sure), janitors are worth a million dollars, security personel, etc..

Re:GIGO

Alias on 2007-05-28T04:29:32

All your comment tells me is that it's based on false premises :)

Firstly, the dollar value sloccount sets is based on effort, not value, and for a finished product, and is based on standard estimate models with a reasonable track record.

That is, if that code was a finished product, how much should it have cost to develop.