《整洁代码》的作者不再审核AI生成的代码。
推文链接:https://x.com/unclebobmartin/status/2080257779395154409?s=20
罗伯特·马丁(Robert Martin),《代码整洁之道》的作者,发推如下:
> 我比你们年长得多。我在60年代末开始编程。我的当前策略是不阅读我的代理人所写的任何代码。这是我能够利用他们生产力的唯一方法。我所做的,是给代理人设置极端的约束条件。单元测试、Gherkin测试、质量保证程序、质量指标、变异测试、测试覆盖率,以及其他许多。这最终让我对他们产生的代码充满信心,因为他们必须经历我所有的约束和测试的考验。
查看原文
Tweet URL: https://x.com/unclebobmartin/status/2080257779395154409?s=20<p>Robert Martin, the author of Clean Code, tweeted the following:<p>> 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.