Hacker News new | ask | show | jobs
by fhe 19 days ago
i think the point is that, code quality as we used to define it doesn't matter any more, that from here on code will be written, reviewed, tested and maintained by machines. for example, does human readability still matter? or modular design? why would functional programming still be a thing if machines can hold the entire codebase and all possible states of the program in its memory?
6 comments

> i think the point is that, code quality as we used to define it doesn't matter any more, that from here on code will be written, reviewed, tested and maintained by machines.

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.

Isn't an escape hatch yet...

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.

Programming languages are a terse way to describe the logic we want, so if you understand what needs to be built well enough it's possible to write it out faster in code.

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.

I've been programming for many decades and I go all the way back to FORTRAN IV to C/C++ through CUDA. That said, there are tasks I can more easily describe than implement. I no longer bother resolving config issues on my machines, I let the coding agents do that as one example and then explain their fix to me.

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?

One more thing: any low-level coding legend will tell you to focus on the 2% of the code that eats 98% of time. That leaves the other 98% of the codebase as fair game for increasingly trustworthy coding models as AI becomes the new compiler.

If you micro-optimize an entire codebase yourself, not only will you never get the job done, the hardware and architecture underneath will shift faster than you can specify your precise intent. CUDA itself proved this 20 years ago with 100x to 1000x accelerations over legacy single-threaded and or badly distributed CPU code, but I guess the lesson didn't sick in.

Here's an opinion piece by a guy who at first predicted that software was over, and now argues based on his experience that software factories don't work long term, that agents need readable codebases, and that they slowly, inevitably tend towards chaotic, broken codebases:

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.

> I don't those suspicions match my experiences

Was interested in your conclusion and left confused.

Ugh, sorry - was typing on my phone and rushing.

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.

> why would functional programming still be a thing if machines can hold the entire codebase and all possible states of the program in its memory?

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.

If you drive this argument to it's logical conclusion, why not let the LLM program in assembly? Why do most people still choose to have LLMs produce code in, say, Rust or Python? If programming in those high-level languages holds any sort of advantage, even for LLMs, then at least the quality of those languages (Rust vs C++?), and by extension any code, would appear to matter.
> if machines can hold the entire codebase and all possible states of the program in its memory?

Gen AI does not work like how you think it does.

> that from here on code will be written, reviewed, tested and maintained by machines

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