Simon Willison是 Django Web 框架的共同创建者(a co-creator of the Django Web Framework),擅长python和js开发。他的博客经常分享一些AI编程相关的内容。3月份他写了一篇文章,分享使用大模型编程的心得《Here’s how I use LLMs to help me write code》,我觉得其中有几点很有意思
第一、AI写代码并没有想象中那么容易,不要被带了节奏。
If someone tells you that coding with LLMs is easy they are (probably unintentionally) misleading you.
第二、AI编程虽然能写出和厉害的代码,但是现阶段仍然是助手,需要你也得“行”,如果你完全不行,全指望它,可能你会失望的。
If you assume that this technology will implement your project perfectly without you needing to exercise any of your own skill you’ll quickly be disappointed.
第三、强调了测试的重要性,虽然代码是大模型写的,但最后对客户负责的人是你,要想给客户交付高质量的产品,必须经过严格的测试。
- 什么都可以外包给机器,只有测试不能外包
The one thing you absolutely cannot outsource to the machine is testing that the code actually works.
- 无轮编码工作有没有大模型参与,写出好代码的关键都是测试
This may not be glamorous but it’s always been a critical part of shipping good code, with or without the involvement of LLMs.
我觉得这逻辑一点毛病没有啊,会不会有一天大模型取代了开发,技术团队就剩产品和测试了呢?