Lines of code...
-
What the study found is that the difference between the best of the best and the worst of the worst was HUGE. I have met programmers who can't write a line of WORKING code to save themselves. Tim Smith Descartes Systems Sciences, Inc.
I guess the question is one of metrics - lines of code are not really an indicator. For example, if Jim writes a compression algorithm in 20 lines of code and in the same time Bob's algorithm has 200 lines, assuming Bob's isn't better in terms of performance, who did the better job ? Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
-
How many lines of code have you guys written so far in your life? I'm estimating I've written about 1 million lines :eek:. That might not seem a lot to people who have been at this since the sixties ;) but I still think that its a lot. -Oz --- Grab WndTabs from http://www.wndtabs.com to make your VC++ experience that much more comfortable...
No idea, couldn't guess. Depends on the project, been on some absolute shit projects where my staying awake was a big win let alone coding. Others I have a mile a minute as I have just clicked with what has to be done and was interested at the same time. Also now I only get to code on my own time, nothing here at work, all development done in the good ol' US of A. Michael Martin Pegasystems Pty Ltd Australia martm@pegasystems.com +61 413-004-018 "Don't belong. Never join. Think for yourself. Peace" - Victor Stone
-
Boy, that is really hard to say. But a 1,000,000? Even the best programmers only produce 100 lines of working code a day. (From a study many years ago. The average was 5 lines of working code a day.) That comes out to 26,000 lines of working code a year given 5 days a week, 52 weeks a year. Would take 38 years for the best of us to product 1,000,000 lines of code. Tim Smith Descartes Systems Sciences, Inc.
The average was 5 lines of working code a day Who said it had to work?:)
-
Boy, that is really hard to say. But a 1,000,000? Even the best programmers only produce 100 lines of working code a day. (From a study many years ago. The average was 5 lines of working code a day.) That comes out to 26,000 lines of working code a year given 5 days a week, 52 weeks a year. Would take 38 years for the best of us to product 1,000,000 lines of code. Tim Smith Descartes Systems Sciences, Inc.
Tim In the early stages of the project, creating classes, functions stubs, you tend to generate tons of code. As the functions are implemented the code output slacks off, by the end of the project - bug fixes etc. you probably end up with 10-20 lines of code a day.
-
How many lines of code have you guys written so far in your life? I'm estimating I've written about 1 million lines :eek:. That might not seem a lot to people who have been at this since the sixties ;) but I still think that its a lot. -Oz --- Grab WndTabs from http://www.wndtabs.com to make your VC++ experience that much more comfortable...
Some time ago, I programmed an application for a small company and my employer asked me to use a lot of lines of code because if not, that company would think it didn't worth what they pay for it (we gave them the source code), they just wanted to open the project and see thousands of lines so it's the most commented project I've ever programmed, every line had it's comment ! If ( a == b ) { //this is an if } else { //this is an else } ORi:)
-
No idea, couldn't guess. Depends on the project, been on some absolute shit projects where my staying awake was a big win let alone coding. Others I have a mile a minute as I have just clicked with what has to be done and was interested at the same time. Also now I only get to code on my own time, nothing here at work, all development done in the good ol' US of A. Michael Martin Pegasystems Pty Ltd Australia martm@pegasystems.com +61 413-004-018 "Don't belong. Never join. Think for yourself. Peace" - Victor Stone
My collegue writes a lot more code than me, so if we were paid for each line should I work like him. >:confused: Some code of him:
BOOL CMyClass::getDirRoot(char* sDirRootPath)
{
BOOL bRet = TRUE;
CString sDirRootPath_tmp = getenv("Root");
CString sMsg = "\nRoot = "+ sDirRootPath_tmp;#ifdef _DEBUG
acutPrintf(sMsg);
#else
#endifif (sDirRootPath\_tmp.GetLength () <= 0) { sMsg = "No Root set"; AfxMessageBox(sMsg,MB\_OK); bRet = FALSE; } sprintf(sDirRootPath,"%s",sDirRootPath\_tmp); return bRet;
}
BOOL CMyClass::getDirRoot(CString& sDirRootPath)
{
BOOL bRet = TRUE;
CString sDirRootPath_tmp = getenv("Root");
CString sMsg = "\nRoot = "+ sDirRootPath_tmp;#ifdef _DEBUG
acutPrintf(sMsg);
#else
#endifif (sDirRootPath\_tmp.GetLength () <= 0) { sMsg = "No Root set"; AfxMessageBox(sMsg,MB\_OK); bRet = FALSE; } sDirRootPath = sDirRootPath\_tmp; return bRet;
}
Le Ridder Noir
Considderd to be the worlds fastest knoppenbonker.
one year of working experience with the worlds fastest copie paster(about 2000 lines a minute).
And experience with the one and only NewEra Guru and Crystal Ace. -
if ( a == b ) cout << a ; How many lines of code are there? ;P ;P ;P I vote pro drink :beer:
You could do it more: Instead of
if ( a == b )
cout << a;(2 lines) you could do
if
(
ab
)
{
cout
<<
a
;
}12 lines. Thats an improvement of 600 percent (let alone the comments that I've forgotten) :-). -- See me: www.magerquark.de Want a job? www.zeta-software.de/jobs
-
You could do it more: Instead of
if ( a == b )
cout << a;(2 lines) you could do
if
(
ab
)
{
cout
<<
a
;
}12 lines. Thats an improvement of 600 percent (let alone the comments that I've forgotten) :-). -- See me: www.magerquark.de Want a job? www.zeta-software.de/jobs
or, to make it really bad...
i\
f
(
a
=\b
)
{
c\
o\
u\
t
<\
<
a
;
}It also makes it nearly impossible to debug :rolleyes: - Anders Money talks, but all mine ever says is "Goodbye!"
-
Well, trust me, I didn't take the message as a "Mine is bigger than yours" message. Tim Smith Descartes Systems Sciences, Inc.
I hope that we're still talking about lines of code here... :-O (2b || !2b)
-
My collegue writes a lot more code than me, so if we were paid for each line should I work like him. >:confused: Some code of him:
BOOL CMyClass::getDirRoot(char* sDirRootPath)
{
BOOL bRet = TRUE;
CString sDirRootPath_tmp = getenv("Root");
CString sMsg = "\nRoot = "+ sDirRootPath_tmp;#ifdef _DEBUG
acutPrintf(sMsg);
#else
#endifif (sDirRootPath\_tmp.GetLength () <= 0) { sMsg = "No Root set"; AfxMessageBox(sMsg,MB\_OK); bRet = FALSE; } sprintf(sDirRootPath,"%s",sDirRootPath\_tmp); return bRet;
}
BOOL CMyClass::getDirRoot(CString& sDirRootPath)
{
BOOL bRet = TRUE;
CString sDirRootPath_tmp = getenv("Root");
CString sMsg = "\nRoot = "+ sDirRootPath_tmp;#ifdef _DEBUG
acutPrintf(sMsg);
#else
#endifif (sDirRootPath\_tmp.GetLength () <= 0) { sMsg = "No Root set"; AfxMessageBox(sMsg,MB\_OK); bRet = FALSE; } sDirRootPath = sDirRootPath\_tmp; return bRet;
}
Le Ridder Noir
Considderd to be the worlds fastest knoppenbonker.
one year of working experience with the worlds fastest copie paster(about 2000 lines a minute).
And experience with the one and only NewEra Guru and Crystal Ace.OK I have to ask it. what is a knoppenbonker? Michael Martin Pegasystems Pty Ltd Australia martm@pegasystems.com +61 413-004-018 "Don't belong. Never join. Think for yourself. Peace" - Victor Stone
-
Boy, that is really hard to say. But a 1,000,000? Even the best programmers only produce 100 lines of working code a day. (From a study many years ago. The average was 5 lines of working code a day.) That comes out to 26,000 lines of working code a year given 5 days a week, 52 weeks a year. Would take 38 years for the best of us to product 1,000,000 lines of code. Tim Smith Descartes Systems Sciences, Inc.
-
OK I have to ask it. what is a knoppenbonker? Michael Martin Pegasystems Pty Ltd Australia martm@pegasystems.com +61 413-004-018 "Don't belong. Never join. Think for yourself. Peace" - Victor Stone
knoppenbonker == key presser **Le Ridder Noir
Considderd to be the worlds fastest knoppenbonker.
one year of working experience with the worlds fastest copie paster(about 2000 lines a minute).
And experience with the one and only NewEra Guru and Crystal Ace.** -
It's my opinion that anyone who produces an average of five lines of code a day deserves to be paid in banana dollars. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
When you are writing you're own code it's easy to maintain a high level of productivity. However, in the system I'm working on now, I have to insert code into a working system. Since there are sections of the code that no one has looked at in 6 years, It sometimes takes me three or four days of effort to find a one line bug or insert a 20 line enhancement. That's where the low LOC/day figures come from. In addition I am in a CMM Level 3 shop so all of the documentation and procedure documents take a big cut into that. Along with Design and Code Reviews. 20 LOC/day is an awesome spread for me, it usually only happens when I've got a fairly new section of functionality with minimal impacts to the rest of the codebase. When religion and politics help drive the same cart, they tend to drive faster and faster until it is too late to stop when they see the cliff ahead -- Frank Herbert.
-
I don't consider 'non-working' lines of code to actually be lines of code. They are lines of garbage. Tim Smith Descartes Systems Sciences, Inc.
-
Oh.. I can't follow this view. Otherwise I'd have too many days where hundred lines of code turn into right garbage under my eyes. ;)
-
How many lines of code have you guys written so far in your life? I'm estimating I've written about 1 million lines :eek:. That might not seem a lot to people who have been at this since the sixties ;) but I still think that its a lot. -Oz --- Grab WndTabs from http://www.wndtabs.com to make your VC++ experience that much more comfortable...
There was a post on /. a while back that stated programmers code an average of about 64 days a year. The rest of the time is spent on design, debugging, and canceled projects.
-
How many lines of code have you guys written so far in your life? I'm estimating I've written about 1 million lines :eek:. That might not seem a lot to people who have been at this since the sixties ;) but I still think that its a lot. -Oz --- Grab WndTabs from http://www.wndtabs.com to make your VC++ experience that much more comfortable...
I just used the line counting addin to find the number of lines in the project I am working on now. It has 20 VC++ projects and the counted lines of code is 228,000. I am working on this for the past 9 months. The count also includes the VC++ auto-generated code :).