Page 1 of 1
Most lines of code you've ever written in a single day?
Posted: Sat Mar 11, 2006 1:50 pm
by Chris Corbyn

I'm physically starting to shake from doing nothing but typing and thinking all day
I'm coming up for about 2000 lines now.... a lot of that is fairly basic stuff but some of it is crazy logic and I think it's perhaps time to take a break
I'm not sure it's the most I've ever done but it sure feels like it.
What's the most source lines of code you've churned out in a day? That excludes HTML/Markup -- you can't count that I'm afraid since it's way too easy to clock up oodles of markup. You obviously also don't count comments or white-space.
//Goes to make another coffee, sticky tapes eyes open to stay awake
EDIT | By the way, if you want to get the most accurate results without all the white-space and comments etc download an application called "sloccount" -- SLOC == Source Lines of Code
Posted: Sat Mar 11, 2006 3:12 pm
by neophyte
In production mode I can hit about 1000 lines of usable code in a single day.
Posted: Sat Mar 11, 2006 3:22 pm
by jwalsh
I think a better question would be...
"How many lines of code have you removed in a day by refactoring?"
And I dont mean combining multiple commands onto one line!
Posted: Sat Mar 11, 2006 3:36 pm
by neophyte
jwalsh wrote:I think a better question would be...
"How many lines of code have you removed in a day by refactoring?"
And I dont mean combining multiple commands onto one line!
Yeah refactoring is much tougher than building lots 0' code.

Posted: Sat Mar 11, 2006 3:45 pm
by Chris Corbyn
neophyte wrote:jwalsh wrote:I think a better question would be...
"How many lines of code have you removed in a day by refactoring?"
And I dont mean combining multiple commands onto one line!
Yeah refactoring is much tougher than building lots 0' code.

I don't need to refactor, I get it spot on first time
I wish

Re: Most lines of code you've ever written in a single day?
Posted: Sat Mar 11, 2006 4:12 pm
by Roja
d11wtq wrote:That excludes HTML/Markup -- you can't count that I'm afraid since it's way too easy to clock up oodles of markup. You obviously also don't count comments or white-space.
Sorry, I'm going to reject just as easily your choice of measurements.. comments count. White-space (if it helps make the code more maintainable) counts. In addition, refactoring code to be more simple (reducing the line count) should also count.
I suggest the highly democratic diff count. Do a one-liff difference count, and pipe it to wc -l.
With that, my highest single day was at ~4400. Lately, I'm lucky to hit 100.
Posted: Sat Mar 11, 2006 6:05 pm
by jayshields
I reckon I've hit ~1000 a couple of times. Thing is, I comment almost every line, if not, it's every block atleast.
I get bored if I'm coding to validate form fields (or other mundane stuff), something I've done 1000 times, so I usually just stop after about half an hour. If I'm doing something perplexing that I've never done before I can code for hours.
Just gotta think about the light at the end of the tunnel and you can regain some will-power

Posted: Sat Mar 11, 2006 6:36 pm
by Moocat
Probably about 2000.
On average though it's in the realm of 300-500 (on the days I work on it). I'd have to agree with Roja on the comments and HTML though, it's part of the program, it counts as code. Only thing I'd say is, divide all copy pasted lines by 10 (if you copy/pasted 100 lines of code, it only counts as 10).
Posted: Sat Mar 11, 2006 6:52 pm
by jwalsh
d11wtq wrote:neophyte wrote:jwalsh wrote:I think a better question would be...
"How many lines of code have you removed in a day by refactoring?"
And I dont mean combining multiple commands onto one line!
Yeah refactoring is much tougher than building lots 0' code.

I don't need to refactor, I get it spot on first time
I wish

Remind me to hire you for my next project then, cause all my contractors code is highly refactored. You could save me tons o' time!
Posted: Sun Mar 12, 2006 11:11 pm
by alex.barylski
I don't think I've ever even considered that...but from a wild guess...
I'd say maybe 500-1000...
I spend much of my time thinking about how to refactor code...
5000 lines seems like an aweful lot of code to spill out...in one day...remind me to hire you guys when I get something rolling
I am also very dilligent when writting source code to make sure every line does exactly what I expect, testing probably 10-15 times with different values before moving onto the next line. When a section or function is complete I also then test the snot out of that.
Number of lines depends on so many things...like the language, etc...
For instance, in Windows development when you go low level API, hooking, etc...
It's quite easy to get snagged by a bug/system caveat which can take you days or weeks to figure out...that slows down your lines/day average
Also depends immensely on the logic required...I hardly do anything extensive in business logic. I spend much of my time developing new systems, etc...where the logic isn't always very obvious until you crank out a couple versions first...
Most importantly though, how much planning docs are supplied before you start writting code...?
If someone provided me with a well planned class with it's exact API, input params, returns, etc...
Maybe I could crack out 5000 lines in a day
Cheers

Posted: Mon Mar 13, 2006 5:16 am
by patrikG
From scratch I'd say about 500 lines of code I still like today
