Ask HN: What is your take on the importance of code quality when coding with AI?
2 points
1 hour ago
| 1 comment
| HN
My feeling is that clean code, SOLID and a good project structure are even more important now than ever. Especially when you're building something long term, not just a prototype.
curious1008
1 hour ago
[-]
Agree. When I first started using AI to build projects I just let it do whatever it wanted. Turned out to be completely unmaintainable — everything was a black box.

The worst is when you find a bug, fix it, and then Claude Code starts spiraling — "this isn't right either", "actually let me change this part too", "wait no let me revert that" — just Clauding endlessly and making things worse.

Now I make it break everything into atomic changes. At least it's not a total black box anymore.

reply
maciejj
1 hour ago
[-]
Exactly, for me starting with spec works well. I even do multiple rounds with Claude: "review this from the clean code / SOLID perspective", "check if everything is consistent and follows project conventions". Only after that I allow him to proceed with implementation. And I have architecture and tech stack clearly described in CLAUDE.md
reply