From: Joel VanderWerf Date: 2005-03-11T16:23:16+09:00 Subject: Re: [JOB] Possible ruby job in SF Bay Area Jamis Buck wrote: > On Mar 10, 2005, at 8:20 PM, Joel VanderWerf wrote: > >> >> Ruby: 2 years, responsible for at least one project of >10K >> lines. (Strong Lisp/SmallTalk background may be an >> acceptable substitute.) > > > Just curious: how many people have written a project in Ruby consisting > of over 10K lines of code? Even my own most complex lib, Net::SSH, is > only 8.5k lines. (Well, I guess it's 16.7k if you count the unit tests, > but I'm still curious as to how common this is.) > > What is the average LOC for a typical "complex" (for some arbitrary > definition of complex) Ruby project? Hm, maybe that is not a useful criterion. A program is not better because it is larger. But it may not be fair to compare lines of library code with lines of application code.... you have to think (and test) harder for each line of library code. My current deliverable on another project (not related to the one in the announcement) is over 21K of ruby. That doesn't count blank lines and comments, or unit tests. It does count my own libraries, mostly written for this project. That's with frequent refactoring efforts, too. It's fairly dense. (And it generates 8K lines of C code.) For the predecessor to the announced project, the figure is 13K lines of ruby. Another project was 8.6K (some generated by racc, to be fair). For the job, I was thinking specifically of GUI code, which tends to inflate LOC at a faster rate than it inflates complexity, until you get tired of typing and put some effort into metaprogramming.