Software Engineering Cannot be Solved by Code Generation (中文)

2026-10-16

Since around the release of Claude Opus 4.5, LLM & agentic coding have finally become useful. But, turns out it is still non-trivial to write software with AI. Personally I had always find the process of vibe-coding painful. It is not to say that agentic coding is useless or inefficient, but it is painful.

It roots in that SE holds a weird position between engineering and math. One hand, we do care about, and we mostly only care about practical, real-world problems in SE, in contrast to Terence Tao's Math 2.0 Presentation in which he inappropriately gives a conceptual scenario of people not understanding medicine. We do math for fun, at least in the past 50 years, and we have to admit that math has ventured into a mind game built in thin air, and we should not pretend that we study math mainly in hope that it has practical uses.

Thus mathematics may be defined as the subject in which we never know what we are talking about, nor whether what we are saying is true. People who have been puzzled by the beginnings of mathematics will, I hope, find comfort in this definition, and will probably agree that it is accurate. [1]

That was a little deviation, but this is not a strict paper anyway; let's get back to SE. With that said, SE also differs from traditional engineering in which the connection to the physics world is very thin. We still model problems with a-priori constructions like other engineering disciplines, but we mainly deal with human intention and demands rather than nature. The latter has a ground truth while the former is not. This gives SE insane flexibility at carrying out formal descriptions (code), which becomes a problem.

CS roughly consists of two parts, theoretical and applied. Theoretical mainly consists of discrete math and complexity theory, and applied has more nuances of managing and coordinating people, structuring formal language (code) such that it caters for future needs. The essence of "applied" CS, i.e. SE, is to translate blurry, natural languages into formal languages.

During the process of SE, one of the two scenarios will apply, exhausively:

  1. You state your demand in a formal way. Given that it is empirically observed that LLMs seem to behave really well at solving well-defined, formal problems (such as optimization, reverse engineering / cybersecurity, or just general, a-priori math problems), most of the time it will work. But at this point you are essentially writing code yourself, and most SE can be seen as proof by construction.
  2. You don't state your demand in a formal way. In this case, LLM starts to guess and fill out the gaps in your natural language. Because of the nature, the formal construction can get pretty arbitrary. Sometimes they happen to be correct as guided by LLM company RL imposing "best practices" into models, and sometimes they diverge. It results in inevitably loss of control and deviation from intention.

Some anecdotes may help but anyone done SE should see this immediately obvious so I'll just be lazy here (see Dijkstra [2]). It boils down to we don't actually fully understand our demand until we implement and iterate it. Funnily this is why we hire architects and product managers in the first place.

One can definitely argue that "theoretically LLMs can do whichever thing human is doing", but up till now I don't see any signs of it. They have never come up with beautiful, insightful math abstractions, nor have they decide autonomously one abstraction is better than another given some situation.

EDIT 2026-09-11: Just BTW my stance on math is more than Intuitionism

References

  1. B. Russell, Mysticism and logic, and other essays. London : G. Allen & Unwin, 1917. Accessed: Oct. 16, 2026. [Online]. Available: http://archive.org/details/mysticismlogicot00russ
  2. E. W. Dijkstra, “On the Foolishness of ‘Natural Language Programming,’” in Program Construction, International Summer School, Berlin, Heidelberg: Springer-Verlag, Jul. 1978, pp. 51–53.