Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TeeJay (2309)

TeeJay
  (email not shown publicly)
http://www.aarontrevena.co.uk/

Working in Truro
Graduate with BSc (Hons) in Computer Systems and Networks
pm : london.pm, bath.pm, devoncornwall.pm
lug : Devon & Cornwall LUG
CPAN : TEEJAY [cpan.org]
irc : TeeJay
skype : hashbangperl
livejournal : hashbangperl [livejournal.com]
flickr :hashbangperl [flickr.com]

Journal of TeeJay (2309)

Tuesday May 15, 2007
02:51 PM

SLOCCount thinks I'm amazing..

[ #33280 ]

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).

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • 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 proble
    • I really need to check one of these days and see if sloccount ignores POD, __END__ and __DATA__ blocks, and heredocs properly.

      … SelfLoader?

    • 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.
      --

      @JAPH = qw(Hacker Perl Another Just);
      print reverse @JAPH;
  • 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..
    • 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.