开发者称重度AI编程可能造成脆弱代码库
一名前 Meta 员工称,其任内最后几个月至少用 AI 生成了 90% 的代码,但代码产出并未增加两倍,甚至十倍。该开发者目前供职于另一家大型科技公司,并已改为用 AI 生成全部代码。他们认为,重度使用 AI 可能导致测试浅薄、不必要的复杂度、开发者理解下降及技术债务累积。他们还将智能体编程与更多事故、更慢的恢复速度及由用户发现的错误联系起来,但没有提供对照实验或独立测量。
这篇亲历报告指出了使用编程智能体的团队可能需要检查的具体维护问题,包括测试深度、代码复杂度、开发者理解、审查时间和技术债务。
I can only speculate as to the reasons why I was laid off from Meta in May, but I suspect that one of the reasons is that I was a little bit more resistant to adopting AI/LLMs as coding tools than some of my peers. Don't get me wrong, I generated at least 90% of my code using AI in my last few months there, which was the minimum for a decent rating. But AI didn't 10X the amount of code I was writing. It didn't even 2X it.
I was focused on code quality. I saw the code being pushed by some of my peers who were heavily reliant on AI, and I saw that it was brittle code. There were many subtle issues that would lead to tech debt in the long term, and even some glaring issues were ignored by very good programmers. For instance, I saw one of the best programmers on my team try to merge code that used javascript events for mouseover CSS effects rather than using the :hover selector, which is a totally unscalable way of writing mouseovers.