hn.today

We promoted developers into architects without informing them

manidoraisamy.com578 points308 comments
Screenshot of We promoted developers into architects without informing them

A performance problem in a Google Forms add-on illustrates how seemingly simple AI-generated code can make poor architectural choices. To track new installations, a developer had the code try to retrieve a user’s email, then a user ID, and finally record an error. Each attempt triggered several Google API calls, all before the welcome screen appeared, delaying it by 15 seconds. The better choice, the author argues, depends on business priorities: record only the installation time and tell marketing that contact details are unavailable, or show the welcome screen first and collect details asynchronously, while weighing the security implications of accepting an unauthenticated request.

The broader argument is that AI coding tools implement stated requirements but lack the context to judge trade-offs or push back on them. Their emphasis on security and backward compatibility can also produce slower systems and redundant data models. Developers must therefore take on the work of architects: define the architecture and data model, specify when compatibility matters, constrain AI to the design, and review its output. The author frames the shift as a change in developers’ responsibilities, not the end of their careers. As AI takes over more coding, developers should learn to challenge requirements and make design decisions; otherwise, people without architectural expertise may create applications that perform poorly and become difficult to maintain.

Read on manidoraisamy.com308 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.