Hacker News new | ask | show | jobs
by bluedino 3760 days ago
>> Varnish has been in existence for 10 years, so that's 15K lines per year. 200 workdays a year makes that 75 lines a day. 7.5 hours of work per day gives 10 lines per hour.

You can't really say that, though.

Let's roll back the clock to when the project was new and say, only 10k lines of code. Maybe that first 10k was written in a month. Fleshing things out, then adding features like crazy. Coding in a euphoric state.

Once you've reached a certain amount of code, you're doing maintenance. Fixing bugs. Re-factoring code. I can see 10 lines of code per day. I notice that in my own projects. I might write a few thousand lines in a week and then as time goes on, I write a few hundred, then a few tens, then maybe just a couple edits.

2 comments

Exactly. One of my past jobs was maintaining a mature codebase that had been under incremental development for over a decade. Most of the bug fixes I made involved anywhere from 2 hours to 2 days of investigation, usually followed by a one or two line change.
> Coding in a euphoric state.

You must be fun to code with.