Better HN
topnewbestaskshowjobs
Log inSign up

mossgu

1 karma · joined Jan 8, 2026 (10mo ago) · 6 submissions

Submissions

comment 9mo ago · link · parent

You're right it still matters, but I'd reframe why. Good code used to carry design intent — readable code told the next person why things were structured this way. When AI writes the code, that's gone. The code works but it doesn't explain itself. So where does the "why" live now? Not in the code — that's disposable. Not in the prompt — that's throwaway. It has to live in something upstream that the human owns. Something formal enough that you can regenerate the code from it. Your point 3 is the key one. Software is never done. But "easy to change" requires knowing why it was built this way. That knowledge used to live in the code. Now it needs a new home.

comment 9mo ago · link · parent

Code quality matters more now, not less — but the definition shifts.

"Good code" used to mean readable, well-structured, maintainable by humans. When AI writes the implementation, those qualities become secondary.

What matters is: was the design clear enough to produce correct code in the first place?

The pattern I keep seeing: teams try to enforce quality after generation — linting, reviews, static analysis. That works for surface-level issues. It doesn't catch architectural drift, because by the time you're reading the code, the design decisions are already baked in and invisible.

Quality has to move upstream.

If you can't make AI-coded apps work without the code being robust and testable, the question is: who's responsible for making it robust and testable? The answer can't be "hope the AI gets it right." It has to be constraints that make wrong output impossible.

3.

Show HN: Design is Code – UML to TDD tests that constrain AI code generation(mossgreen.github.io ↗)

2 points · by mossgu · 9mo ago · discuss