Lines of Code in an hour?

For everything that's not in any way related to PureBasic. General chat etc...

How many Lines of (BUG FREE) PB Code do you write in an hour?

< 10
5
13%
10 - 49
11
28%
50 - 75
4
10%
76 - 99
2
5%
> 100
3
8%
> 200
4
10%
> 300
4
10%
> 400
1
3%
> 500
6
15%
 
Total votes: 40

techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Lines of Code in an hour?

Post 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!
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

I'll bet my old socks, that no one has the guts to start answering this stupid poll... :twisted:
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post 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...
Last edited by blueznl on Mon May 08, 2006 8:48 pm, edited 1 time in total.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post 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:
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Copy and pasting old code?
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

my userlibs contains over 600 lines (of course with copy-paste 200 lines of code template :) )
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
DarkDragon
Addict
Addict
Posts: 2347
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post 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
bye,
Daniel
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post 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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
helpy
Enthusiast
Enthusiast
Posts: 552
Joined: Sat Jun 28, 2003 12:01 am

Post 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
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post 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.
~I see one problem with your reasoning: the fact is thats not a chicken~
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post 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.
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

I can't answer this poll. I never produced 1 hour of bug-free code :)
El_Choni
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

I'm not shure what to answer :lol:
MadMax
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Oct 06, 2003 11:56 am

Post 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.
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

Including VD generated sources? ohhh sorry... you said "Bug free code" hmmm. :D
Tranquil
Post Reply