Hacker News new | ask | show | jobs
by dscrd 4686 days ago
It would be 2-10 times less lines of code on Django (and also on Rails). Lines of code comparisons do not scale between programming languages.
2 comments

I'm not sure I agree. All the frameworks just mentioned do more or less the same thing and have comparable lines of code counts.

- Django - 215,000 LOC (.py)

- Ruby - 232,000 LOC (.rb)

- CakePHP - 240,000 LOC (.php)

Rails is about 110,000 LOC, last I checked right before the 4.0.0 release, where'd you get that number?
$ git clone https://github.com/rails/rails.git && cd rails

$ find . -name '*.rb' | xargs wc -l | tail -1

232424 total

Maybe I should have said LOCC (lines of commented code)?

That does include all of their unit tests code though. I wouldn't personally define unit tests as "core" framework code since I can deploy a Rails app without them (they never show up in a stack trace). It's going to come down to your own semantics since Rails wouldn't exist as it is today without them either.
Ahhh, you know what? I just realized I was confused: the diff for rails 4 was about +110,000 / -100,000, that's what I'm remembering that number from. My bad!
>>It would be 2-10 times less lines of code on Django (and also on Rails) [Compared to CakePHP].

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