stats
So Mark was filling out a form today which got me curious as to how much code we actually have so far.
I've been a bit curious ever since I read the excellent Web app autopsy by the Wufoo.com guys (I don't read a lot of blogs, but theirs has gradually become a favourite).
Rails has a handy rake task that shows line number count, but it only shows back-end line count. One quick Google search later, I had a solution (which amusingly, also links to the Web app autopsy).
So, the numbers (with no fancy graphics, sadly):
Model/controller: ~2800
View: ~2200
CSS: ~400
JavaScript: ~1500 (of our own code - not counting Prototype, etc.)
Tests: don't want to talk about it.
Which means all in all, we're approaching 7,000 lines of code.
I have no idea whether that's good or bad... since LOC is a metric of questionable usefulness, and I'm usually happier when I manage to delete code and reduce the line count. But there it is.
Let's see what numbers we have when we release!
I've been a bit curious ever since I read the excellent Web app autopsy by the Wufoo.com guys (I don't read a lot of blogs, but theirs has gradually become a favourite).
Rails has a handy rake task that shows line number count, but it only shows back-end line count. One quick Google search later, I had a solution (which amusingly, also links to the Web app autopsy).
So, the numbers (with no fancy graphics, sadly):
Model/controller: ~2800
View: ~2200
CSS: ~400
JavaScript: ~1500 (of our own code - not counting Prototype, etc.)
Tests: don't want to talk about it.
Which means all in all, we're approaching 7,000 lines of code.
I have no idea whether that's good or bad... since LOC is a metric of questionable usefulness, and I'm usually happier when I manage to delete code and reduce the line count. But there it is.
Let's see what numbers we have when we release!
Labels: line count, loc, rake, ruby on rails

