I may be crucified for asking this but: is there any proof that slop matters beyond our sensibilities as developers? If the code is ugly, but defects are low—does it matter? If the code is hard to read, but clients are happy—should I care? Genuinely asking. Weird times we live in.
Benchmarking Opus 5 on SlopCodeBench
91–100 of 131 posts
Re: Benchmarking Opus 5 on SlopCodeBench
#92I always have Claude recite a pledge before starting coding to fix redundant code it notices over time. It does seem to find redundancies, but only when I point out bugs, that's when it goes into fixing mode and actually applies my Don't Repeat Yourself preference from the CLAUDE.md. The original paper cited by this post does try to see if improved prompting will make a big difference in the end using a `plan_first`…
This is just superstition.
Re: Benchmarking Opus 5 on SlopCodeBench
#93So far my 'solution' to this has been periodically run a separate round of whole-codebase code review (preferably Fable) and then rounds of refactoring off the results of that
Re: Benchmarking Opus 5 on SlopCodeBench
#94I may be crucified for asking this but: is there any proof that slop matters beyond our sensibilities as developers? If the code is ugly, but defects are low—does it matter? If the code is hard to read, but clients are happy—should I care? Genuinely asking. Weird times we live in.
That's precisely what this benchmark tries to quantify. Since the benchmark incrementally expands the scope of each problem, 'sloppy' code is code that is hard to later modify.
I know this firsthand: the dumbest coder I've ever worked with was 'myself six months ago'. That jackass never keeps the documentation up to date and hard-codes things that ought to be exposed as configuration.
The SlopCodeBench is an important but early-stage probe in this direction.
Re: Benchmarking Opus 5 on SlopCodeBench
#95I may be crucified for asking this but: is there any proof that slop matters beyond our sensibilities as developers? If the code is ugly, but defects are low—does it matter? If the code is hard to read, but clients are happy—should I care? Genuinely asking. Weird times we live in.
It's the eternal question with any kind of tech debt -- is it worth a little more velocity now in return for medium-to-long term slowdown? And there's no general right answer.
Re: Benchmarking Opus 5 on SlopCodeBench
#96This benchmark makes me worry a bit that people will just ask their model to reimplement everything from scratch once their requirements become more clear.
Re: Benchmarking Opus 5 on SlopCodeBench
#97Nice! I actually ran across this paper+benchmark recently, too. It's the first I've found that start to aim at some of the non-functional and longitudinal requirements that I think have always been an important part of writing production code. It's especially relevant now that models are good enough to solve ~most point-in-time problems. Some relevant but disconnected thoughts: - deterministic scores are so nice - wh…
> another signal I've been thinking about and I'm seeing increasingly get brought up is the state space of a system State space of a system AND the way to make it accessible / visible to a model. Many times a model can work magic if it can "see" the state of a system in a way that suits it. That's why sometimes having a cli added to the environment seems like such a big unlock. Because that cli usually takes a comple…
Re: Benchmarking Opus 5 on SlopCodeBench
#98I may be crucified for asking this but: is there any proof that slop matters beyond our sensibilities as developers? If the code is ugly, but defects are low—does it matter? If the code is hard to read, but clients are happy—should I care? Genuinely asking. Weird times we live in.
I've seen a few papers recently on the topic in terms of LLM, here is two I found by quick googling
* "Does Code Cleanliness Affect Coding Agents? A Controlled Minimal-Pair Study" https://arxiv.org/abs/2605.20049
"Our findings suggest that traditional maintainability principles remain highly relevant in the era of AI-driven development, shaping the computational cost and navigational efficiency of coding agents."
* "Code for Machines, Not Just Humans: Quantifying AI-Friendliness with Code Health Metrics" https://arxiv.org/abs/2601.02200
"Our findings confirm that human-friendly code is also more compatible with AI tooling."
"Investing in maintainability not only helps humans; it also prepares for large-scale AI adoption."
> If the code is ugly, but defects are low—does it matter? > If the code is hard to read, but clients are happy—should I care?
For you who wrote it and are the sole developer, maybe not. But if you want to have other contributors or hand it off, then it can be a problem. New devs joining the project may not want to work with it and will push for a rewrite that will cost money or need to spend extra time on working with code that is hard to work with for them which will cost money. And from the papers above it seems this also affects LLMs as well as they seem to work more efficiently with "cleaner" code.
Re: Benchmarking Opus 5 on SlopCodeBench
#99I hope the big labs will start using this benchmark in their RL pipelines. Reducing complexity in generated code should be the number 1 priority, in my opinion. The holy grail for me is models implementing features while reducing LoC (i.e., choosing the right abstractions). What is also nice about this benchmark is that it can be used to iterate on prompts/skills for reducing code complexity.