Drupal vs. Joomla! - Code Metrics

The blog post Drupal vs. Joomla - Fight! pointed me to a discussion on the drupal-devel mailing list about the ohloh.net website which tries to gather some statistics/metrics about the code of Free Software projects. Their slogan:

Explore Open Source

Mapping the open source world by collecting
objective information on open source projects.

You might want to read their Terms of Use, though, which don't sound very open...

Anyway, their stats about Drupal and about Joomla! are flawed (for example) because they seem to include the whole contrib CVS tree of Drupal (not just the core Drupal), which is huuuge. But there's no need to use any fancy website anyway, there are Free Software tools out there which can produce some metrics, too.

The following data is generated using David A. Wheeler's SLOCCount (for the respective tarballs of the current stable releases):

Drupal 4.7.4

Total Physical Source Lines of Code (SLOC)                = 8,012
Development Effort Estimate, Person-Years (Person-Months) = 1.78 (21.34)
 (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months)                         = 0.67 (8.00)
 (Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule)  = 2.67
Total Estimated Cost to Develop                           = $ 240,198
 (average salary = $56,286/year, overhead = 2.40).

Joomla 1.0.11

Total Physical Source Lines of Code (SLOC)                = 65,880
Development Effort Estimate, Person-Years (Person-Months) = 16.25 (194.94)
 (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months)                         = 1.54 (18.54)
 (Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule)  = 10.51
Total Estimated Cost to Develop                           = $ 2,194,486
 (average salary = $56,286/year, overhead = 2.40).

Not that I think these numbers mean anything ;-) Lines of Code is a very, very unreliable indicator for code quality (or anything else, for that matter)...

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

As a Joomla User...

Joomla has Gloss in spades, gazillions of themes, flexible block presentation, WYSIWYG editing, and more flash based presentation galleries than you can shake a stick at.

Drupal seems to have the guts that Joomla lacks; everything integrated, taxonomy, flexible hierarchies, access control, etc.

I'm not saying that you can't have these guts in Joomla (if your willing to code hard) or the gloss in Drupal (can't see how to get this out of the box) but you really do need to choose horses for courses.

Drupal Vs Joomla Code Metrics

I have read that most of the figures quoted by CMS system are flawed and overstated e.g. they even count contributors as developers. The open source metrics are also not very clear and as obvious the lines of codes is a very bad metric for quality of product but for the time being we will have to use it as a parameter. Drupal API is however generally regarded as the better one technically.

Just came across SQO-OSS

sqo-oss.eu/
This is a two-year multi-million euro project that aims to develop new tools and techniques for measuring Open Source quality.

less == more

I just switched on my timetracker for this reason:
* To hack together the proof of concept, I needed 2 hours. 800+ lines of code and comments and copy-paste stuff
* To make an actual modular, function-splitted app from that, with less then 300 lines, I needed an additional 5 hours.

Conclusion: building a good system will result in less lines of code, but cost more. The exact opposite of what all these OSS value-o-meters seem to asume.

ohloh anti-hype

This is at least the 5th blog post I've seen today referencing ohloh's statistics. I'm glad you pointed out how much of a joke their stats are, but I'm starting to question whether you should even link to them.

Their conclusions and calculations are ridiculous, but I'm afraid they're exactly the sort of hyped stats that news outlets love.

Here's hoping ohloh dies a quick painless death before they do any real damage!