how much do you code on average?
Hello programmers , nerds and whatnot :)
i have been lately pondering how huge software has become i.e millions of lines of code like the linux kernel in contrast to how much any given programmer could/does write in average... so the question goes out to all programmers regardless of your language(s) , how many lines of code do you write in a given time period (in a year , month , week ..etc) cheers |
Quote:
I've done totally new pages for my system, with just the addition of a few lines of code. Then I've also had to rewrite entire modules, since upgrades rendered the old ones a bad choice to use...so those 'few lines' turned into thousands. |
Quote:
how many lines of code all in all ? for instance , i've been personally working on a different variety of projects from AI , web design/programming to lots of other stuff. all that put together in let's say the year of 2009 i've written about 3k-5k lines of code , this also includes lines that have been rewritten so how about you? cheers |
It is hard to estimate, but maybe 1000-2000 per year, but it depends, this includes not only adding new lines, but also changing lines. Mostly bash, and maybe some hacking in C.
|
Quote:
|
It really depends on the project you're after, convenience of the environment and editor, and speed in typing and maneuvering of shortcut keys. Mind speed also.
Add: Motivation + Enthusiasm |
I think you guys are over analyzing it. Based on the OP's response, it looks to me like he is asking:
In 2009, how many lines of code did you write? Or even, on average, approximately how many lines of code to you typically write in a week, month or year. No need to bring in details about why it may be more one time than another. It isn't a scientific survey, he's just looking for a guess. For me, I don't work as a programmer. I do a lot of BASH scripting, though. I probably only coded about 500 lines of code in 2009. |
Five lines of 'stable, working code' a day -averaged yearly.
|
Quote:
|
Quote:
Quote:
i guess the best thing a programmer can do is to write lines that are only necessary in order to increase its quality. complete the following sentence : Quote:
Quote:
btw , deprecated lines also do count , so for instance if you wrote a function that was later removed from the code then that counts as well even if it no longer exists in the project. cheers |
No, only lines of stable bug-free code count. The figure I stated is based on that criteria and is what has been suggested by others as being the average output of programmers. I thought it was low, but when I added up the lines of code of my main project divided by the years I've worked on it, the answer was quite close to that.
|
Quote:
http://sf.net/users/konsolebox and that does not include the projects i make for personal sake at home. Quote:
|
Quote:
anybody who wants to top that record of 10,000 lines per year? btw , i see you're ultra fond with shell scripts , how come ? in your position i'd write something in php for the command-line terminal , just put in #!/usr/bin/php cheers |
Quote:
Quote:
|
crikey! I am such a nerd
Code:
$ find ~/w ~/lib ~/include -type f -ctime -365 \( -name \*.sh -o -name [Mm]akefile -o -name \*.tk -o -name \*.tcl -name \*.[ch] -o -name \*.?pp -o -name \*.pl \)| Code:
$ find ~/w ~/lib ~/include -type f -ctime -365 \( -name \*.sh -o -name [Mm]akefile -o -name \*.tk -o -name \*.tcl -name \*.[ch] -o -name \*.?pp -o -name \*.pl \)|^Jxargs cat|grep . | wc -l | commify Code:
|
All times are GMT -5. The time now is 06:19 AM. |