logoalt Hacker News

AnimalMuppet • today at 4:10 PM • 1 reply • view on HN

Why would you care about architecture? Ability to implement the current feature, ability to implement future features, maintainability, and (at least sometimes) performance.

But why would you care when an AI can just rewrite it? Yes, but can it rewrite it to a good architecture? Or just to a different one?

Does a good architecture make code easier for an AI to maintain? I don't know, but I think it's at least not proven that it doesn't.


Replies

simonh • today at 4:37 PM

It’s important for separation of concerns, which is important for maintenance and future iteration on features and bug fixes. If you don’t have separation of concerns, every change to anything is essentially a from scratch rewrite of the whole thing. That’s also incredibly inefficient in token usage.