by fhe · 3w ago · 0 comments
Code quality was never a one dimensional metric that just meant "easy for humans to read". Perhaps this distinction has been lost over time, or was never internalized by some parts of the industry, but high quality code is narrow in its function and design. It is well specified, with limited dimensions of variability - this is part of what metrics like cyclomatic complexity measure.
The reason for that is that the input space - the sheer combinations of possible input - of a piece of code grows far faster than the intended functionality of the code. Good code operates on a narrow space and that is important because it is both easier for humans to comprehend, and easier to test. Code that is easier to reason about is easier to validate - by humans, by automatic testing, and by LLMs.
Poorly written code is both harder to understand and harder to validate. An LLM is not an escape hatch that negates that.
I think there is a huge amount of resistance to a near-term future where it's more about the ability to describe and specify a thing than it currently is to code up a thing in order to build it. And I suspect that LLMs or whatever succeeds them will continue improving from here without any of the claptrap about a near-term malevolent superintelligence that's out to kill us all.
The future IMO will be relatively efficient code with independent models reviewing for quality and security afterwards. Life continues to come at us fast.
Natural language is more ambiguous so you often need more of it to describe something. Specifications if consistent often end up as a kind of programming language in themselves, but usually ambiguous on matters that affect performance.
I'm with you on the review side though. Even the best models of today give some nonsense in reviews, but if you understand the code it's usually easy to skim the review and skip over nonsense.
But you are right about the efficiency of description given you have the 10,000+ hours into writing efficient code in the chosen language. Most do not. And they hide that by leaning on Python and its insane library toolchain which itself becomes its own skill set, but one more amenable to LLMs to master.
To be brutally efficient, one would write everything in machine code, no?
https://github.com/humanlayer/advanced-context-engineering-f...
As someone who's driving Claude Opus 5.5 daily, by corporate mandate, in a team that is largely aggressively fans of AI, I don't those suspicions match my experiences.
Was interested in your conclusion and left confused.
I meant to write "Those suspicions match my experience."
Just two days ago I was in an incident where a bunch of feature flags my team controls, and that are very intentionally not automated, got flipped on by another team's automation.
I haven't seen a postmortem yet, but it smelled very much like genAI'd code that didn't get reviewed carefully enough.
...which is what all generated code in a software factory is, because the whole point is to have no idea what the hell the program will actually do - just what it has done in testing so far.
Talk about a perfect setup for backdoors - I'm sure there are already plenty of websites out there prompt-injecting agents to put backdoors into systems.
I'll quote Dijkstra yet again, though every time I do it I feel like no one listens to it, or understands what he meant:
"...program testing can be used very effectively to show the presence of bugs but never to show their absence."
Proving programs correct is very difficult, and only really effective if the programmer understands the program and the proof well - a coworker recently added a genAI TLA+ proof to one of our systems, but of course, no one's actually read it thoroughly or understood it, and sure enough, I saw a bug report the other day saying the model would need to be updated since it hadn't prevented the bug.
Deep, thorough comprehension has always been the hard part, and the LLMs do not do that, as far as I can tell.
They are amazing, and they are not trustworthy.
That is naive, have you seen coding agents write tests? They clearly walk the known patterns not imagine execution in all its intricacies. They do superficial testing, like humans.
I think it si time we returned to an old method - N-version programming - to replace "imagined execution" with "actual execution", and testing with fuzzing or passing prod data through a population of replicas. This is my take on AI code testing.
Gen AI does not work like how you think it does.
And very very soon you will find that you just created a self-pleasing machine not a functional system. No amount of boundaries, tests and checks can prevent that. That's just nonsense and it keeps get repeated by marketing