Let’s say you start out by writing a program that is exactly one hundred lines long, and you release your creation to the world. Every line in this program was written just once.
By the time I commit code, each line has often been already been written at least twice. From initial prototyping, getting new insights, refactoring, bug fixes, modifications to make it testable.
And then there is prototyped code that didn’t make it into a commit/release at all.
Would it be easy to build a tool that could be run on arbitrary git repositories to calculate this “average line replacement count”? Seems like excluding test cases and documentation would be the difficult part.
By the time I commit code, each line has often been already been written at least twice. From initial prototyping, getting new insights, refactoring, bug fixes, modifications to make it testable.
And then there is prototyped code that didn’t make it into a commit/release at all.
Would it be easy to build a tool that could be run on arbitrary git repositories to calculate this “average line replacement count”? Seems like excluding test cases and documentation would be the difficult part.