How many lines of code per day?

This forum is for eXpress++ general support.
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

How many lines of code per day?

#1 Post by rdonnay »

I have been asked to give an opinion related to software development in rebuttal to an "expert" who claims that the industry standard for software development is 10 lines of code per day.

In my opinion, if I were capable of producing an average of 10 lines of code per day, considering an 8 hour day, I would never finish any projects.

What say you all about this?
The eXpress train is coming - and it has more cars.

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: How many lines of code per day?

#2 Post by BruceN »

That doesn't make any sense to me. I just spent 20 minutes writing a small routine to read from an INI file (email settings), display the data so it can be edited, then save things back to the ini file. It is about 40 lines of (easy nd quick) coding. A no-nothing half assed progammer like me can get several hundred lines done in a day (depending on how complex).

Perhaps he meant to say 10 functions/procedures/base classes, or whatever - not lines. That might make more sense.

just A thought...
There are only 10 kinds of people - those who understand binary and those who don't :)

User avatar
Tom
Posts: 1173
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: How many lines of code per day?

#3 Post by Tom »

I just compared to builds of my major app, one from today and one from march 1st (28 days). The difference is 3,700 lines of code, no cut & paste (and some code deleted aswell!). That makes about 130 lines a day, weekends counted. And I had a week off inbetween - I finished my 6th novel, and wrote 150 pages in six days. 8-)
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: How many lines of code per day?

#4 Post by bwolfsohn »

I believe standards such as these are for lower level languages and larger level companies where they are including testing, debugging, "quality assurance", etc..

None of which, obviously, apply to any of us.. :lol: :lol: :
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

User avatar
GeneB
Posts: 158
Joined: Sun Jan 31, 2010 8:32 am
Location: Albuquerque, New Mexico, USA
Contact:

Re: How many lines of code per day?

#5 Post by GeneB »

Private sector or government?

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How many lines of code per day?

#6 Post by rdonnay »

The expert is saying that this is the "industry standard", but the only industry I could imagine accepting this as a standard is NASA.

He is using this argument in a lawsuit trying to show the value in the software.

To counter his argument I wrote a program in less than 1 hour that I used to calculate the total number of lines of code in the eXpress++ libraries.
The program has 72 lines of code. That seems about right to me, because I figure that I average around 500 lines of code per day when writing simple applications.

Based on his "industry standard", it should have taken me 100.11 years to write eXpress++. This is considering working every day, 8 hours per day with no vacations. During that 100+ years I would also have no other time to work on any other projects or to provide tech support, sales support or write any sample code.

It appears that eXpress++ is worth much more than I ever thought.
No wonder I am aging faster than everyone else.

I appreciate the feedback on this and will probably use any info you give me in my counter arguments.
The eXpress train is coming - and it has more cars.

User avatar
GeneB
Posts: 158
Joined: Sun Jan 31, 2010 8:32 am
Location: Albuquerque, New Mexico, USA
Contact:

Re: How many lines of code per day?

#7 Post by GeneB »

I calculated that over the last two years the conversion to Express I am working on is netting me 8 cents an hour per customer.
I was going to ask for 10 cents but they told me no one is getting a 25% raise these days.

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: How many lines of code per day?

#8 Post by BruceN »

Roger:

I've often wondered how many lines of code there are in our app. Years ago I did a DIR on all the prg's and 'estimated' the number of characters per line to get a SWAG (scientific wild ass guess) estimate.

Could you post your line counter?

thanks,

bruce
There are only 10 kinds of people - those who understand binary and those who don't :)

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How many lines of code per day?

#9 Post by rdonnay »

I calculated that over the last two years the conversion to Express I am working on is netting me 8 cents an hour per customer.
I was going to ask for 10 cents but they told me no one is getting a 25% raise these days.
I apply different standards to conversion projects because they tend to require major structural changes to code and they often lead to lots more rework and also more of a learning curve. When I am working on conversions, my productivity rate probably drops to about 200 lines per day, mostly because I am working with existing code that may be convuluted.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How many lines of code per day?

#10 Post by rdonnay »

Could you post your line counter?
Here it is:

Code: Select all

#INCLUDE "dcdialog.CH"

FUNCTION Main()

LOCAL GetList[0], GetOptions, cDir, aDir[0], oBrowse, nTotalLines := 0, ;
      nCodeLines := 0, cExt

cDir := Space(50)
cExt := Space(4)

@ 0,0 DCSAY 'Enter directory containing Source files' SAYSIZE 0
@ 1,0 DCGET cDir
@ 2,0 DCSAY 'Enter File Extension'
@ 3,0 DCGET cExt

@ 5,0 DCBROWSE oBrowse DATA aDir SIZE 50,12 FONT '10.Lucida Console' HEADLINES 2 FIT

DCBROWSECOL ELEMENT 1 HEADER 'File;Name' WIDTH 20 PARENT oBrowse FOOTER Chr(255)
DCBROWSECOL ELEMENT 2 HEADER 'File;Size' WIDTH 10 PARENT oBrowse FOOTER Chr(255)
DCBROWSECOL ELEMENT 11 HEADER 'Total;Lines' WIDTH 10 PARENT oBrowse PICTURE '999999' ;
   FOOTER {||Alltrim(Str(nTotalLines))}
DCBROWSECOL ELEMENT 12 HEADER 'Code;Lines' WIDTH 10 PARENT oBrowse PICTURE '999999' ;
   FOOTER {||Alltrim(Str(nCodeLines))}

@17,0 DCPUSHBUTTON CAPTION 'Calculate' SIZE 10 ;
      ACTION {||Calculate(oBrowse,cDir,cExt,@nTotalLines,@nCodeLines), DC_GetRefresh(GetList)}

DCGETOPTIONS SAYBOTTOM TABSTOP
DCREAD GUI FIT TITLE 'Calculate Lines of Code' SETAPPWINDOW OPTIONS GetOptions

* --------

PROC appsys ; return

* --------

STATIC FUNCTION Calculate( oBrowse, cDir, cExt, nTotalLines, nCodeLines )

LOCAL i, nHandle, cFileName, cLine, aDir

nTotalLines := 0
nCodeLines := 0
cDir := Alltrim(cDir)
cExt := Alltrim(cExt)
aDir := Directory( cDir + '\*' + cExt)
oBrowse:dataSource := aDir

FOR i := 1 TO Len(aDir)
  ASize(aDir[i],12)
NEXT

FOR i := 1 TO Len(aDir)
  aDir[i,11] := 0
  aDir[i,12] := 0
  cFileName := cDir + '\' + aDir[i,1]
  nHandle := DC_TxtOpen(cFileName)
  DO WHILE !DC_TxtEof(nHandle)
    cLine := DC_Txtline(nHandle)
    aDir[i,11]++
    nTotalLines++
    IF !Empty(cLine)
      aDir[i,12]++
      nCodeLines++
    ENDIF
    DC_TxtSkip(nHandle,1)
  ENDDO
  DC_TxtClose(nHandle)
  oBrowse:arrayElement := i
  oBrowse:refreshAll()
NEXT

RETURN nil
The eXpress train is coming - and it has more cars.

Post Reply