Measuring the sloppiness of code
Hacker News 热议:Measuring the sloppiness of code(219 赞 / 215 评论,来源 earendil.com)
一句话概要
Exploring how to measure code sloppiness, why correct code can still erode a codebase, and why human intuition and taste still matter.
原文开头节选
LLMs have become almost perfect at generating code, but that isn’t the end of the story. Just because the code is formally correct doesn’t mean that it is not introducing unnecessary abstractions, creating duplicates, or just making bad decisions overall. This is not a groundbreaking observation, most people who have vibe-coded a project, have realized that each additional feature can sometimes lead to an explosion of lines of code (LOC).
This results in a loss of human agency, because in projects that are adding millions of LOC per month, it is hard for humans to keep up. 1 Some people might say that that is not an issue at all, because they trust their agents to deal with it. I have bad news for you, agents can’t really deal with the slop either.
Coming from a physics background, I always had an experimental/quantitative approach to solving problems. When I started at Earendil, with the task of figuring out how to measure code sloppiness, my natural instinct was to first take a deep dive into the literature and then check what other companies were doing.
(以上为原文节选,完整内容见下方”原文来源”)
这条动态今日登上 Hacker News 首页(219 赞 / 215 评论,来源 earendil.com)。技术雷达每日自动聚合 AI 工程、后端架构、DevOps 方向的前沿动态;相关工程落地可浏览下方的相关服务与延伸阅读,或直接与我们团队交流。
原文来源: Hacker News