by methyl · 12y ago · 0 comments
If you're writing critical core stuff like that, you better spend a lot more than a week on it. I can't imagine working on anything where the team regularly writes 10,000 lines a week. Prototypes by one person can easily grow at 1kLOC per week for a short time, but that's a special case.
My workaround so far has been to do most of the critical work during after hours or before everyone comes in the office, since my primary role during regular hours is to keep everyone unblocked. It isn't sustainable though, and I only do it at the moment because we are in crunch mode - 'tis the startup life.
You can pull off very high production numbers for a while [under whatever metric you choose] before you start babbling in a corner somewhere, but invariably i's mostly crap and you'll end up replacing every 100k lines with 10-20k lines later, but this time it will be well though out, tested, and maintainable.
I've met a few people who have convinced themselves this isn't true, but nobody who has managed to convince anyone else.
So you can paint yourself into a corner where all you can do is crank as fast as your tooling allows, but it's like deficit spending, it will cost you more in the long run than doing it right would. Of course, if having a long run at all to worry about this depends on your current output, crank away.
A good portion of those loc have been complete rewrites based on existing code to clean it up and meet unforeseen changes in requirements that nobody planned for. Honestly, the amount of code I pumped out is a miracle, I'm hoping I don't get stuck in such a situation again at my current job.
And both 10 hours and 5 days are probably underestimates of the time he is spending.
e.g. Rails core (system) vs people who use Rails (applications).
I think the most extreme of this was a colleague of mine years ago who spent two weeks bug-hunting and eventually removed a single wrong minus sign. Vital work that this metric is completely useless for.
Sometimes I hack away 100s of lines a day and sometimes I search for problems for days without writing a single (persistent) line of code.
I think the longest span I went was about 3 weeks till I tracked down a bug in a legacy system and wrote about 4 lines to fix it :D
I don't think I've ever written more than a few hundred LOC in a week.
However, most code is rewritten/refactored many times. So only little of what you write in any week will be the _final code_.
A line of Ruby is worth a <INSERT-RAGE-HERE> lines of Java.