TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

I asked Gemini for a script to move files to Cloudflare R2. It deleted them

6 点作者 bundie12 天前

5 条评论

rvz12 天前
Recently there was a story about an updater causing a $8,000 bill because there was a lack of basic automated tests to catch the issue. [0]<p>The big lesson here is that you should actually test the code you write and also write automated tests to check any code generated by an LLM that the code is correct in what it does.<p>It is also useless to ask another AI to check for mistakes created by another LLM. As you can see in the post, both of them failed to catch the issue.<p>This why I don&#x27;t take this hype around &#x27;vibe-coding&#x27; seriously since not only it isn&#x27;t software engineering, it promotes low quality and carelessness over basic testing and dismisses in checking that the software &#x2F; script works as expected.<p>Turning $70 problems found in development into $700,000+ costs in production.<p>There are no more excuses in not adding tests.<p>[0] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43829006">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43829006</a>
qwertox12 天前
Rule #1: Always put deletions behind a flag which is disabled for the first couple of test runs.
评论 #43970694 未加载
jethronethro11 天前
This is why you test code or a script <i>before</i> running it for real. Live and learn, I guess ...
victorbjorklund12 天前
Who runs such an AI generated script without checking the code first?
评论 #43971407 未加载
rsynnott12 天前
In which Roko&#x27;s Basilisk fires a warning shot.