Hacker News new | ask | show | jobs
by nucleardog 2167 days ago
My personal best was -112,000 on a legacy project.

The code base was full of commented out code (the best case scenario as you know immediately it can be deleted), methods which had been deprecated and replaced with ‘myMethod2()’ and eventually ‘myMethod3()’ with all of them still in the class (and for extra fun, it wasn’t always the case that all references had been updated to the newest method), and thousand line blocks of code which static analysis helped me pick up were actually not possible to ever actually execute, etc.

Basically a static analyzer with an analysis mode for finding dead code just flagged pretty much the entire codebase.

And in the process I split a totally unrelated project which had been grown inside that codebase like a tumour into its own codebase.

Needless to say two weeks of my time invested really pepped up development velocity for that team.