The Stack Overflow Podcast · Hands-On Engineering Podcasts · December 2026
Asked whether models drift toward mediocre code, Jeff An says it comes down to training: benchmarks reward checkable answers, not maintainability, which is hard to measure.
…So it seems like even frontier models today, if you completely disregard code quality and this very human idea of code smell, it seems like they do actually suffer real performance consequences. Whether or not that continues to be true as models improve over time, I honestly can't say for sure.
Do you think that's a sort of inherent quality of it being like a statistical process, right? It's sort of going towards this mediocre mean.
I think with how models are trained today, yes. Like from what I've heard, you know, in these standard reinforcement learning or RL environments that most frontier labs use to train their AI agents, code quality is not a substantial part of the reward function. It's generally a deterministic output that is being verified, right? If you think about all of the benchmarks that are reported on every new model release, it's like, okay, we've solved all of the IOI gold medalist problems, right? And with an incredible amount of efficiency. And they get better and better at these deterministic outputs, but it doesn't really gauge how humans think about code quality and maintainability over time. I think that just goes to the fact that it's very hard to actually model those things in a reproducible way. Like these are inherently subjective things to begin with. And I think reasonable humans can disagree on whether you want to use ternaries or you prefer if-else statements, for example, or if you want classes or if you want more inline functions.
I definitely think that the last point is critical, like the fact that humans are interacting with each other in order not to be dragged to the median. I actually think that we are also statistical creatures, like to some extent, right? And I think if you leave me alone, I probably fall to…
think what makes us strive or et cetera is us as a civilization, as humanity, as a tribe. I think that's the unit that is the minimal unit of critical mass of human to not to drag to the median, and especially if there's a few of these. So they push each other. And I think, really, let us think for…
swarm of agents, et cetera, they will not be dragged to the median. At least if we let those civilizations evolve a little bit. Sure. And then eventually they won't. Now, this evolution is now created by humans. You're seeing Kodo doing a genetic algorithm for code review and code governance.…