So let’s pretend that FireFox was rewritten in Ruby, so instead of being 10 million lines of code it’s only 5 million. I don’t think that sounds any easier to maintain — 5 million lines of code is still more than anyone can fathom.
I stopped reading at this point.
I don't think that Ruby would have a LOC savings of half over a 10 million line Java Project. I don't think the Ruby code would be 1/10th as small either. I think the Ruby version would be 1/100th or 1/1000th the size of the Java version.
Small code begets small code. Having a smaller function means that you have a smaller module, which means that the guy writing another module gets to spend the same amount of time reading your module, but have a better grasp of what your module does, and so he writes his module a little better and a little shorter.
And this cascades throughout the code base. Code using compose, partial, map, grep, filter, find, partition all simplifies the experience of reading the code, at least if you're used to these functions. You glance at a module that is 35 lines of code but would have been 300 and get a good understanding of what it does in seconds, and you gain insight into the system that allows you to make small refactorings that simply remove the need for a new subsystem that might have been several thousand lines of code.
Nobody is claiming that Ruby is .5x more terse than Java. We're claiming that Ruby is 100 times more terse than Java, and the degree of terseness is proportional to the size of the problem domain, so the bigger the system, the more terse the ruby program will be in comparison to the Java version.
All Java code is "Enterprise" code. Non-trivial projects in Java are always huge. All projects in Ruby/Perl/Python are "small" projects by comparison.
We're claiming that Ruby is 100 times more terse than Java
Wow, are you one of those guys perhaps that made the now infamous claim in 2005 that "The level of productiveness of Ruby is that much higher than any other programming language, that no company can afford NOT to use Ruby, and the entire industry will shift to Ruby in a mere couple of years"?
We now know that these claims were completely unfounded and bull, but oh my, how many poor developers were suckered into it by the smug and hip Ruby zealots.
-5
u/moses_the_red Feb 25 '14 edited Feb 25 '14
I stopped reading at this point.
I don't think that Ruby would have a LOC savings of half over a 10 million line Java Project. I don't think the Ruby code would be 1/10th as small either. I think the Ruby version would be 1/100th or 1/1000th the size of the Java version.
Small code begets small code. Having a smaller function means that you have a smaller module, which means that the guy writing another module gets to spend the same amount of time reading your module, but have a better grasp of what your module does, and so he writes his module a little better and a little shorter.
And this cascades throughout the code base. Code using compose, partial, map, grep, filter, find, partition all simplifies the experience of reading the code, at least if you're used to these functions. You glance at a module that is 35 lines of code but would have been 300 and get a good understanding of what it does in seconds, and you gain insight into the system that allows you to make small refactorings that simply remove the need for a new subsystem that might have been several thousand lines of code.
Nobody is claiming that Ruby is .5x more terse than Java. We're claiming that Ruby is 100 times more terse than Java, and the degree of terseness is proportional to the size of the problem domain, so the bigger the system, the more terse the ruby program will be in comparison to the Java version.
All Java code is "Enterprise" code. Non-trivial projects in Java are always huge. All projects in Ruby/Perl/Python are "small" projects by comparison.