How many lines of code can you write?
How many lines can you write and in what language? I can write about 200 lines of Python per day and am feeling that I don't write fast enough. What are your experiences?
(
5 comments
| 3 points
| on HN
)
I've commented before (http://www.daemonology.net/blog/2007-06-21-think-before-codi...) that anyone who is consistently writing more than 5,000 lines of code per month is either writing trivial code or writing garbage; I think a 1000 - 1500 lines of good quality code per month is a reasonable target (at least as far as C coding is concerned -- I don't have enough data on other languages).
Assuming that Python doesn't vary wildly from C in terms of the amount of thinking required per line of code, I'd say that at 200 lines/day the danger is more likely one of not writing high enough quality code, not one of not writing fast enough.
Edit: It's also worth pointing out that, as Dijkstra commented, "we should not regard [lines of code written] as 'lines produced', but as 'lines spent'" -- given two solutions to the same problem, the one which uses fewer lines of code is generally cleaner and easier to maintain, since it will have less duplication and more layers of abstraction.
if I don't plan (and sometimes I don't because I get lazy) my productivity drops to about 3 hours worth of typing.
oh and I code in java.
Of course there are days when I do really poor job and days when I even surprise myself.
Lines of code is not important at all elegant and reusable code is.