[dba-VB] C# development stats

Gustav Brock gustav at cactus.dk
Sun Mar 4 11:28:23 CST 2012


Hi Shamil

I have no statistics here, but I'm absolutely convinced that I hardly could reach higher than your feet. Most impressive ... indeed when one have in mind the quality of code you produce.

Now, isn't it the time where you start billing by the code line and not by the hour!?

/gustav
 

>>> Salakhetdinov Shamil <mcp2004 at mail.ru> 04-03-12 12:38 >>>
Hi All --

The last 20+ days were rather intensive C# development here - and now when a VS2010 solution is ready to be accepted by customer I decided to calculate that solution's code stats - here they are - .cs files only, *.designer.* files not accounted:

Solutions = 1
Projects = 7
Code Files = 141
Total Lines = 37,055
Total Chars = 1,362,574
Empty lines = 5,087
Comment lines = 3,888
Not empty Code Lines = 28,080

Avg chars per day = 68,128   <= [ 1,362,574 / 20]
Avg lines per day = 1,703       <= [ 1,362,574 / 20 / 40]
Avg code pages per fay  = 28   <= [ 1,362,574 / 20 / 40/60]

Then I decided to calculate stats of one customer projects for about last four years, again .cs files only,  *.designer.* files are not accounted, there are no .aspx.cs files for this customer

Solutions = 36
Projects = 170
Code Files = 3,326
Total Lines = 787,600
Total Chars = 23,552,926
Empty lines = 95,579
Comment lines = 131,460
Not empty Code Lines = 560,561

Avg chars per day = 16,823  <= [23,552,926 / 1400]
Avg lines per day =   420        <= 23,552,926 / 1400/40]
Avg code pages per fay  = 7   <= 23,552,926 / 1400/40/60]

It looks not bad, isn't it?

I do use "copy and paste" to port code between projects, not that often but I do use it.
When ported code starts to "live its own life" within host project...
Most of the time I'm trying  to reuse existing code from my classlibs as well as I'm applying OOP development principles to minimize code duplication...
I do have common classlibs for all the projects so "copy & paste" duplication factor shouldn't be higher than 20% I guess.

All in all even if just 50% of code was typed here manually during last four it happens to be:

8411.759 286	210.2939821


Avg. chars per day: 8412         <= [16,823 / 2 ]
Avg. code lines per day: 210   <= [420 /2 ]
Avg. code pages per day: ~3 .5  ( 40 chars per line, 60 lines per page)

And that is in average for *every day* during last four years.
And counted code lines constitute current "clean" code - how many code lines were typed, copied but edited out during last four years - that isn't known...

80% of developed projects are working in that customer's business 24x7x365...

And this is just for one customer, main one taking 70-80% of work time.

I must note I have never had such a productivity before with any other development tools...

Please correct me if you'll find the above stats unreal...

And what are your development stats?

Thank you.

-- Shamil



More information about the dba-VB mailing list