Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It may be a poor metric, but it's not like we have any other metrics to measure code by.

Well, "dollars / year", if you work in an industry where you can directly A-B test against revenue, but I think most of us are happiest not knowing whether our particular lines of code are EV-positive.



we absolutely have other metrics. Features, Stories, Ease-of-use, Dev Friendly, Qualitive Value. LoC is simply broadcasting how complex either A) the problem is (fair) or B) how you've made it (not fair) - most fall into the latter camp.

Code bases like kubernetes come to mind for LoC far exceeding its value. Code bases like Quake3 come to mind for LoC that provide tremendous value. Every line is an explicit decision to improve the code or make it worse.

Refactoring a system to be generic and re-usable, for example, would reduce LoC yet provide tremendous value. If I were her manager, would I deduct points for -2000 LoC? Would I praise her for taking copy-pasta and making a pattern? I know which I'd choose.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: