logoalt Hacker News

hedorayesterday at 3:12 PM1 replyview on HN

Does anyone have numbers for churn vs. cumulative code?

Most of my commits (hand written and AI) have delete counts that are 75-110% the added line count.

The point that many developers will probably forget to tell the LLM to run cleanup/refactoring paths is probably true though. (I’ve definitely found ghost-chasing bugfixes in all sorts of corners of LLM generated code).


Replies

rsanheimyesterday at 4:46 PM

Yeah /simplify is your friend. That and constrained prompts - “refactor x for simplicity - resulting diff must remove n lines of code. Dont change tests. “