Skip to content

Latest commit

 

History

History
91 lines (51 loc) · 3.45 KB

README.md

File metadata and controls

91 lines (51 loc) · 3.45 KB

Coders' efficiency rating

Script create coders' efficiency rating by analyse git repository data.
Commercial projects oriented.

Example

How it works

What is coder's efficiency?

Is it how many lines he adds? But if developer added to the project some outer library (jQuery for example), should it count? Or if other developer rewrote that code because it was not correct, should it count? So may be efficiency is how many lines he deletes? Even more confusing metric, isn't? How many commits he creates? Well, it's important but...

The only thing that is really important is the сode in release repository. That code has survived and we can call it effective.

Coder's efficiency is how much effective code he produced compared to other team members.

Example

Team created a project in 100 working days and the final repo has 10'000 LOC.

John worked on this project from the beginning up to the end and created 5000 LOC for release repo. His contribution in release repo is:
10'000 total LOC / 5000 author LOC = 50%

Potential LOC for project that John could create is:
(5000 author LOC / 100 working days) * 100 working days = 5000 LOC

Peter worked on the project only 50 days and created 3000 LOC. His contribution is:
10'000 total LOC / 3000 author LOC = 30%

Potential LOC for project that Peter could create is:
(3000 author LOC / 50 working days) * 100 working days = 6000 LOC

And Mark worked on the project 80 days and created 2000 LOC. His part of contribution is:
10'000 total LOC / 2000 author LOC = 20%

Potential LOC for project that Mark could create is:
(2000 author LOC / 80 working days) * 100 working days = 2500 LOC

Efficiency for every member we will count as:
potential LOC / min potential LOC

Members' Efficiency Statistic would be next

Author         LOC total     Working days        Contribution     Efficiency

Peter               3000               50                 30%            2.4
John                5000              100                 50%            2.0
Mark                2000               80                 20%            1.0

You can see, that contribution and total LOC don't have direct relationship with Coder's Efficiency. Still for the project all metrics are import.

Important notices

  • This statistic will have sense only if you analyze release repo. Code should be stable.
  • This script will show you correct results if working day for every coders is the same, for example 8 hours per day. That is why script marked as commercial oriented.
  • Any day coder has added commits is count as working day.
  • It's only CODERS' rating. Keep in mind that developers do the other stuff as well: review the code, write documentation and so on. It will not count in this rating and here is why this script was named Coders' efficiency and not the Developers' Efficiency.

How to run

[Will be added later]

Inspired by

Contribution

If you want to contribute to the project, these links could be useful for you: