Lines of Code in an hour?
Either this is a trick question, or I misinterpreted the question.
I however answered the poll as if the question was,
how many lines of bug free code consecutively (sp?) do I on average code during 1 hour of work.
Which is between 10 and 50 lines and I mess up a line or two, then another 10-50 lines before next bug.
If however it asks how many lines of bug free code total in one hour of coding, then I got no clue really.
I have written full programs in a hour before, which had no bugged code.
And I have also managed to write a single and bugged line of code only, in a full hour. A very ambigious question in this case.
If this is a trick question, then I'm not really sure what it's hinting at.
Typing speed, typing speed of bugs, or what?
I however answered the poll as if the question was,
how many lines of bug free code consecutively (sp?) do I on average code during 1 hour of work.
Which is between 10 and 50 lines and I mess up a line or two, then another 10-50 lines before next bug.
If however it asks how many lines of bug free code total in one hour of coding, then I got no clue really.
I have written full programs in a hour before, which had no bugged code.
And I have also managed to write a single and bugged line of code only, in a full hour. A very ambigious question in this case.
If this is a trick question, then I'm not really sure what it's hinting at.
Typing speed, typing speed of bugs, or what?
i based my number upon some code that i wrote in the past, some of them over 6000..10000 lines long, and compared that with the time needed to wrote and debug them, so yes, i interpreted as 'bugfree code' not bugfree lines...
( 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... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
-
techjunkie
- Addict

- Posts: 1126
- Joined: Wed Oct 15, 2003 12:40 am
- Location: Sweden
- Contact:
Am I too old for this forum?!?
Lines of bugfree code in an hour, was a "common" measurement to explain quality, complexity, speed or difficulty of, for example a project, for 10 - 20 years ago.
It was said that 6 - 10 bugfree lines of code per hour (or was it DAY?!?!
) was average for a good programmer.
Lines of bugfree code in an hour, was a "common" measurement to explain quality, complexity, speed or difficulty of, for example a project, for 10 - 20 years ago.
It was said that 6 - 10 bugfree lines of code per hour (or was it DAY?!?!

(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
- Joakim Christiansen
- Addict

- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
Ok let me try :
89 lines of bug free code in 0.0016 seconds
89/0.0016=x/3600
x = 200 250 000 lines of bug free code per hour
A small code snippet ...
Or a small variant ...
With a small tool I currently develop named Macro WorkShop.
Regards
Guimauve
89 lines of bug free code in 0.0016 seconds
89/0.0016=x/3600
x = 200 250 000 lines of bug free code per hour
A small code snippet ...
Code: Select all
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<< Déclaration de la Structure >>>>>
Structure Vector3D
i.f
j.f
k.f
EndStructure
; <<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<< Les mutateurs >>>>>
Macro SetVector3Di(ObjetA, P_i)
ObjetA\i = P_i
EndMacro
Macro SetVector3Dj(ObjetA, P_j)
ObjetA\j = P_j
EndMacro
Macro SetVector3Dk(ObjetA, P_k)
ObjetA\k = P_k
EndMacro
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<< Les Observateurs >>>>>
Macro GetVector3Di(ObjetA)
ObjetA\i
EndMacro
Macro GetVector3Dj(ObjetA)
ObjetA\j
EndMacro
Macro GetVector3Dk(ObjetA)
ObjetA\k
EndMacro
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<< Le Mutateur Update simple >>>>>
Macro UpdateVector3D(ObjetA, P_i, P_j, P_k)
SetVector3Di(ObjetA, P_i)
SetVector3Dj(ObjetA, P_j)
SetVector3Dk(ObjetA, P_k)
EndMacro
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<< L'Opérateur Plus >>>>>
Macro PlusVector3D(ObjetA, ObjetB, ObjetR)
SetVector3Di(ObjetR, GetVector3Di(ObjetA) + GetVector3Di(ObjetB))
SetVector3Dj(ObjetR, GetVector3Dj(ObjetA) + GetVector3Dj(ObjetB))
SetVector3Dk(ObjetR, GetVector3Dk(ObjetA) + GetVector3Dk(ObjetB))
EndMacro
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<< L'Opérateur Minus >>>>>
Macro MinusVector3D(ObjetA, ObjetB, ObjetR)
SetVector3Di(ObjetR, GetVector3Di(ObjetA) - GetVector3Di(ObjetB))
SetVector3Dj(ObjetR, GetVector3Dj(ObjetA) - GetVector3Dj(ObjetB))
SetVector3Dk(ObjetR, GetVector3Dk(ObjetA) - GetVector3Dk(ObjetB))
EndMacro
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<< Code généré en : 16 ms <<<<<
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Code: Select all
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<< Déclaration de la Structure >>>>>
Structure Vector3D
i.f
j.f
k.f
EndStructure
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<< Les Macros d'accès direct >>>>>
Macro Vector3Di(ObjetA)
ObjetA\i
EndMacro
Macro Vector3Dj(ObjetA)
ObjetA\j
EndMacro
Macro Vector3Dk(ObjetA)
ObjetA\k
EndMacro
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<< Le Mutateur Update simple >>>>>
Macro UpdateVector3D(ObjetA, P_i, P_j, P_k)
Vector3Di(ObjetA) = P_i
Vector3Dj(ObjetA) = P_j
Vector3Dk(ObjetA) = P_k
EndMacro
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<< L'Opérateur Plus >>>>>
Macro PlusVector3D(ObjetA, ObjetB, ObjetR)
Vector3Di(ObjetR) = Vector3Di(ObjetA) + Vector3Di(ObjetB)
Vector3Dj(ObjetR) = Vector3Dj(ObjetA) + Vector3Dj(ObjetB)
Vector3Dk(ObjetR) = Vector3Dk(ObjetA) + Vector3Dk(ObjetB)
EndMacro
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<< L'Opérateur Minus >>>>>
Macro MinusVector3D(ObjetA, ObjetB, ObjetR)
Vector3Di(ObjetR) = Vector3Di(ObjetA) - Vector3Di(ObjetB)
Vector3Dj(ObjetR) = Vector3Dj(ObjetA) - Vector3Dj(ObjetB)
Vector3Dk(ObjetR) = Vector3Dk(ObjetA) - Vector3Dk(ObjetB)
EndMacro
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
; <<<<< Code généré en : 15 ms <<<<<
; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<Regards
Guimauve


