by deizel · 13y ago · 0 comments
- Django - 215,000 LOC (.py)
- Ruby - 232,000 LOC (.rb)
- CakePHP - 240,000 LOC (.php)
$ find . -name '*.rb' | xargs wc -l | tail -1
232424 total
Maybe I should have said LOCC (lines of commented code)?
Interesting claim. Do you have references?
(An account with a couple of hundreds of Karma making extreme claims? Please surprise me by not being a troll. :-) )
It could probably be rewritten down to about 10-20K lines (maybe less) if I had a spare month or two.
Assuming one uses all the features of a framework, the total complexity of my 24K line framework application (counting only code I've written) could be compared to that of a 321K line non-framework application (counting all the code in my project).
Thankfully I only have to write/maintain 8% of the codebase, as the remaining 92% is kept up-to-date by typing `composer update` on a weekly basis.
There is a lot of code in there that is really "framework" but it's completely baked into everything else so not really separable. There's probably at least 2 different and distinct attempts at creating a framework, and you can tell the age of the code by which it uses.
The main reason it hasn't been significantly refactored is that it is astonishingly reliable considering how bad the code is.