Hits-of-Code Instead of SLoC
- 996 words
- 5 minutes to read
- comments
Lines-of-Code (aka SLoC) is a metric with a terrible reputation. Try to google it yourself and youâll find tons of articles bad-mouthing about its counter-effectiveness and destructiveness for a software development process. The main argument is that we canât measure the progress of programming by the number of lines of code written. Probably the most famous quote is attributed to Bill Gates:
Measuring programming progress by lines of code is like measuring aircraft building progress by weight
Basically, this means that certain parts of the aircraft will take much more effort at the same time being much lighter than others (like a central computer, for example). Instead of measuring the weight of the aircraft we should measure the effort put into it⊠somehow. So, here is the idea. How about we measure the amount of times programmers touch the lines. Instead of counting the number of lines weâll count how many times they were actually modifiedâwe can get this information from Git (or any other SCM). The more you touch that part of the aircraftâthe more effort you spent on it, right?






