logoalt Hacker News

skydhash • today at 12:08 AM • 0 replies • view on HN

From my experience there's always two parts in working with code. The deterministic part where you can derive information from the code itself and do some action, mostly used by static analysis tools (type checker, linting,...) and there's another much harder to define part like "this part of the code is unreadable and/or does not mean what the requirement says".

The first is solved by deterministic tool as code is already formal, so the grammar is very strict and fully defined. But the second part is entirely human dependent of what the end result should look like, even when the same semantics is being kept. That's why two people asked to implement the same task will code it differently even if from the point view of the machine, they're equivalent.

Maintainability and readability is not about software correctness. It's about how the human mind can absorb what the software should do, aka the specs embedded in the code, which is just formal notation. If it's easy, then the software correctness is easy to check and validate. And when the requirements changes, it's easy to apply the needed modifications.

So asking agents to improve upon that is like asking an agent to write an email. It's an alienation of human-human communication.