[{"createTime":1735734952000,"id":1,"img":"hwy_ms_500_252.jpeg","link":"https://activity.huaweicloud.com/cps.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=V1g3MDY4NTY=&utm_medium=cps&utm_campaign=201905","name":"华为云秒杀","status":9,"txt":"华为云38元秒杀","type":1,"updateTime":1735747411000,"userId":3},{"createTime":1736173885000,"id":2,"img":"txy_480_300.png","link":"https://cloud.tencent.com/act/cps/redirect?redirect=1077&cps_key=edb15096bfff75effaaa8c8bb66138bd&from=console","name":"腾讯云秒杀","status":9,"txt":"腾讯云限量秒杀","type":1,"updateTime":1736173885000,"userId":3},{"createTime":1736177492000,"id":3,"img":"aly_251_140.png","link":"https://www.aliyun.com/minisite/goods?userCode=pwp8kmv3","memo":"","name":"阿里云","status":9,"txt":"阿里云2折起","type":1,"updateTime":1736177492000,"userId":3},{"createTime":1735660800000,"id":4,"img":"vultr_560_300.png","link":"https://www.vultr.com/?ref=9603742-8H","name":"Vultr","status":9,"txt":"Vultr送$100","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":5,"img":"jdy_663_320.jpg","link":"https://3.cn/2ay1-e5t","name":"京东云","status":9,"txt":"京东云特惠专区","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":6,"img":"new_ads.png","link":"https://www.iodraw.com/ads","name":"发布广告","status":9,"txt":"发布广告","type":1,"updateTime":1735660800000,"userId":3},{"createTime":1735660800000,"id":7,"img":"yun_910_50.png","link":"https://activity.huaweicloud.com/discount_area_v5/index.html?fromacct=261f35b6-af54-4511-a2ca-910fa15905d1&utm_source=aXhpYW95YW5nOA===&utm_medium=cps&utm_campaign=201905","name":"底部","status":9,"txt":"高性能云服务器2折起","type":2,"updateTime":1735660800000,"userId":3}]
最近网络上很多文章都在说ChatGPT,神乎其神,我也试着玩了一下,这里分享下过程。
从结果来说,它离替代程序员还有很长的一段路要做。因为程序的工作虽然是由各个小模块组成,但是一个系统性的大逻辑,可能是现阶段的它所无法触及的。毕竟一个系统由n个小模块,以及模块间的协作区完成工作。就算它能帮助完成一些模块的编码,但是对于系统需求的转化,还是需要程序员去跟进。
对于高级和中级程序员来说,它是一款非常不错的辅助工作,能节省很多的信息筛选和排错的时间,比如一些功能,我们用搜索引擎的化,可能会出现很多冗余无用的信息,而用它能精准定位到,在搜索引擎还需要花费时间和精力去筛选信息。
对于初级程序员来说算是一个福音,它并不会消灭初级程序员,而是能让初级程序员更快成长为中级程序员。
整体来讲,我还是感觉挺意外的。
我准备了以下10个问题,看看它的表现:
1:让它封装一个函数来实现某些功能
2:给出一个函数让它优化
3:给出一段代码让它说明代码逻辑
4:给出一段代码让它查找bug
5.1:让它根据指令说出逻辑1
5.2:让它根据指令说出逻辑2
6:让它根据需求描述实现对应指令的逻辑
7:让它用PHP封装一个POST请求函数
8:让它用python3写个二分法查找函数
9:让它模拟10行SQL的查询结果数据
10:让它找出给定数组中找出第3行第三列的值
截图顺序跟问题顺序一致: