Tuesday, July 14, 2009

How long does it take to write 10000 lines of code for a professional?

If I was a professional coder (i.e it was my day job) and I was coding in a language like C++ or Python and was coding things like GUI's, network interfaces, web interfaces etc (quite high level tasks). How many days/hours do you think it would take to write a ten thousand (10000) lines of prof quality code?

How long does it take to write 10000 lines of code for a professional?
It depends on the application, the programming language, and by what you define "quality code" to be.





Some applications never reach the 10,000 lines of code mark and thus the question is moot for them. Also, some programming languages are more verbose than others so you might be writing twice as many lines of code to get something done when compared to other languages. Finally, what defines quality code is difficult to peg down as if you are looking for 100% bug free you are likely to never find it.





If we are talking about sitting a programmer down at the computer and just letting them work without worrying about bugs then a good programmer will likely finish about 10,000 lines of code in a few weeks. However, if we start worrying about making sure the code is bug free then this number will quickly turn into months or even years depending upon the complexity of the code.





An interesting article to check out would be the following as it explains the differences between the various "Lines of code" metrics - http://www.developer.com/java/other/arti...
Reply:Probly depends on the complexity of the project
Reply:It would take me about a minute to write one line and copy / paste it 10,000 times.





How long a project takes, or should take, has nothing to do with how many lines of code it uses. In fact, most professionals measure programs by their elegance, which means using less code, not more.





The time a project should take ought to be a measure of how complex the problem is and how many resources are applied to solving it.

song downloads

No comments:

Post a Comment