Skip navigation.

Harold's Home

   Home
  
XML version of this site

PHP Scripts

Index
CLI fun
Mail on 404
HB-NS (NewsScript)

Downloads

Applescripts
APOD to Desktop
Dreamweaver Extensions

Stuff

Writings
Other stuff
Central Grinder

OOOk Default:

VJ stuff
VJ Tools
Bananas
Strippers
Sample Movies

News

Need stats?
Yet more from the useless statistics department here at the top secret underground headquarters of OOOk Default:.

Brent, of NetNewsWire fame, writes about SLOCcount, a tool which analyses sourcecode and gives some statistics on that.

So I ran it on Virtual Pet Rock and on my blogscript.
What's amazing is that these are two quite different projects, yet they have almost the same outcome. Without further ado here are the results from the Dutch jury.
Virtual Pet Rock
Total Physical Source Lines of Code (SLOC) = 2,001
Development Effort Estimate, Person-Years (Person-Months) = 0.41 (4.97)
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months) = 0.38 (4.60)
(Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule) = 1.08
Total Estimated Cost to Develop = $ 55,969
(average salary = $56,286/year, overhead = 2.40).


Blogscript
Total Physical Source Lines of Code (SLOC) = 1,588
Development Effort Estimate, Person-Years (Person-Months) = 0.33 (3.90)
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months) = 0.35 (4.19)
(Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule) = 0.93
Total Estimated Cost to Develop = $ 43,907
(average salary = $56,286/year, overhead = 2.40).


These counts are made using the default settings, in the case of my blogscript for example .sql files and .css files aren't counted.
The Virtual Pet Rock case is even more complicated as Virtual Pet Rock really depends on the interaction with the website*. It's all well and good having a virtual rock to care for but the great fun comes in uploading your statistics and comparing this to other people's rocks. This would add 1101 lines of code.
Virtual Pet Rock with program related PHP files
Total Physical Source Lines of Code (SLOC) = 3,102
Development Effort Estimate, Person-Years (Person-Months) = 0.66 (7.88)
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months) = 0.46 (5.48)
(Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule) = 1.44
Total Estimated Cost to Develop = $ 88,688
(average salary = $56,286/year, overhead = 2.40).


As in the case of my blogscript .css files aren't counted, as well as 24 lines of XML that contain some extra data the program needs for internet activity.

*) You can run VPR just by itself without ever needing an internet connection after downloading and registering but the fun comes with the added internet 'interactivity'.

Show all items | Read all items

About, copyright, privacy and accessibility | Mail