TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

6 pointsby bundie9 days ago

5 comments

rvz9 days ago
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>
qwertox9 days ago
Rule #1: Always put deletions behind a flag which is disabled for the first couple of test runs.
评论 #43970694 未加载
jethronethro8 days ago
This is why you test code or a script <i>before</i> running it for real. Live and learn, I guess ...
victorbjorklund9 days ago
Who runs such an AI generated script without checking the code first?
评论 #43971407 未加载
rsynnott9 days ago
In which Roko&#x27;s Basilisk fires a warning shot.