Ask HN: Do you still need to know whats going on in the code?
2 pointsHi, do you guys think its still important to know whta's going in the code written by AI when its working and manual testing looks good too.
However, the code generated by AI looks obfuscated/minified and need a rewrite if you wana understand.
Comments (2) 3 threads
Show all comments
Showing thread 2 of 3
Code has always served two purposes: causal and expressive. The causal element is straightforward: code as recorded in a text file can bring about desired effects in the world (more directly an interpreter, or less directly through compliation, distribution to multiple machines, etc.).
The expressive element is just as economically important. Code expresses some view of a problem and its solution which the author can refer to in the future, and which others can in principle understand (see Peter Naur's "Programming as Theory Building", linked below).
Apologists for vibe coding argue that only the former role of code is economically relevant today, because LLMs can take an expression in prose (natural language) and bring about desired effects. Whether code is an intermediate step in that process is now an uninteresting implementation detail, they argue.
This view is premised on a misunderstanding: that natural language is a sufficiently expressive medium for directing computational effects. In fact, programming languages (e.g. Rust, Typescript) are the end product of tremendous amounts of investment in figuring out how to think and express clearly the patterns of effects a computer program can bring about. Efforts to replace formal languages with prose have been attempted in every generation since the 1960s, have never succeeded, and will not succeed so long as our purposes in programming computers together are so different from our purposes in talking to one another about other areas of life.
In the main, LLMs are in fact useful for manipulating code, but code will remain an indispensable moment in the software development lifecycle.
https://pages.cs.wisc.edu/~remzi/Naur.pdf
Notwithstanding the above, there are of course domains where truly "single serving" programs (i.e. generated once, run a few times, never modified) are genuinely valuable. But most demand for software is not single serving and cannot be transformed into demand for single serving software.