Page 1 of 2

Lines of Code in an hour?

Posted: Tue Feb 28, 2006 7:23 pm
by techjunkie
Yeah! Now the Poll is here! It had to come in this kind of Forum! :lol:

Note: The question is about BUG FREE PB Code!

Posted: Tue Feb 28, 2006 7:40 pm
by techjunkie
I'll bet my old socks, that no one has the guts to start answering this stupid poll... :twisted:

Posted: Tue Feb 28, 2006 8:35 pm
by blueznl
i estimate i write about 50 to 60 lines of error free code per hour (effectively averaged out), i think i write actually a bit more, but some nasty obscure bugs tend to bring productivity down

and hey, no, i'm not afraid to say so :-)

<edit> well lately productivity has dropped a little to 30..40... too many bugs...

Posted: Wed Mar 01, 2006 12:01 am
by techjunkie
Ehhhh... someone codes > 500 lines of bug free PB code / hour?!?

That's one line every 7.2 second! If we take the Gadget.pb example;

With all blank lines and the comment header removed, it is 84 lines. This includes 3572 characters (with spaces). So one line of PB code would be 42 characters.

Even if we remove all spaces (2689 characters) it will be 32 characters / line.

So this person is typing 4.4 bug free characters / second (without spaces)!!

That's impossible - or is it Fred?!?! :?: :lol:

Posted: Wed Mar 01, 2006 9:16 am
by Trond
Copy and pasting old code?

Posted: Wed Mar 01, 2006 9:25 am
by eddy
my userlibs contains over 600 lines (of course with copy-paste 200 lines of code template :) )

Posted: Wed Mar 01, 2006 9:27 am
by DarkDragon
eddy wrote:my userlibs contains over 600 lines (of course with copy-paste 200 lines of code template :) )
My Userlib contains 10000 Lines of fully uncommented code. :D

Posted: Wed Mar 01, 2006 9:34 am
by PB
> That's one line every 7.2 second

It's not hard to type a line every 7 seconds. Here is a bug-free line:

Code: Select all

ev=WaitWindowEvent()
Took me less than 2 seconds to type. Probably less than 1 second with AutoComplete.
Nobody said a line of code has to be long. :) In fact, "good programming" says that
you should only ever have one command per line anyway.

Posted: Wed Mar 01, 2006 11:29 am
by helpy
You have to differentiate between "bugfree lines" and "bugfree code". 1000 bugfree lines does not mean that the code is bugfree!

AND the amount of "lines of bugfree code per hour" depends on the size of the project.

cu, helpy

Posted: Wed Mar 01, 2006 7:39 pm
by Killswitch
I said >300, but it's usually just around 300. The main reason I'm able to do this is because I write a chunk of code that does something specific then test it; fix it; then move on. Most of my bugs are usually spelling errors :D.

Posted: Wed Mar 01, 2006 7:47 pm
by techjunkie
Well, to be frank I suppose when you have these kind of questions, you are talking about NEW bug free code?!?!

No cut & paste, no re-usable code and without autocomplete.

The question is really stupid and I think time has caught up with it.

Posted: Wed Mar 01, 2006 7:49 pm
by El_Choni
I can't answer this poll. I never produced 1 hour of bug-free code :)

Posted: Wed Mar 01, 2006 8:21 pm
by Joakim Christiansen
I'm not shure what to answer :lol:

Posted: Thu Mar 02, 2006 12:51 am
by MadMax
I have no idea, I usualy spend quite a time working out my code on paper, test bit's of code if I'm unsure how they will work. So by the time I start coding it goes quite fast. Then sometimes I can be stuck for hours on some crazy bug.

Posted: Thu Mar 02, 2006 4:54 am
by Tranquil
Including VD generated sources? ohhh sorry... you said "Bug free code" hmmm. :D