《代码大全》作者不再审查 AI 生成的代码

8 分•作者: SantiDev•2 个月前
推文网址:https://x.com/unclebobmartin/status/2080257779395154409?s=20 《代码整洁之道》的作者 Robert Martin 发布了如下推文: “我的年纪比你们大得多。我从 60 年代末就开始写代码了。我目前的策略是不读我的代理(AI 助手)写的任何代码。这是我唯一能利用他们生产力的方式。我所做的,是给这些代理设置极其严格的约束。单元测试、Gherkin 测试、QA 流程、质量指标、变异测试、测试覆盖率,以及其他许多方面。最终,我对他们生成的代码非常有信心,因为他们必须通过我设置的所有约束和测试的考验。”
查看原文
Tweet URL: https:&#x2F;&#x2F;x.com&#x2F;unclebobmartin&#x2F;status&#x2F;2080257779395154409?s=20<p>Robert Martin, the author of Clean Code, tweeted the following:<p>&gt; I’m significantly older than you. I started coding in the late 60s. My current strategy is to not read any of the code written by my agents. That’s the only way I can take advantage of their productivity. What I do instead is to surround the agents with extreme constraints. Unit tests, gherkin tests, QA procedures, quality metrics, mutation testing, test coverage, and a plethora of others. In the end, I have very high confidence in the code they produce because they’ve had to run the gauntlet of all of my constraints and tests.