Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

AI-generated code contains more bugs and errors than human output

⁨724⁩ ⁨likes⁩

Submitted ⁨⁨1⁩ ⁨day⁩ ago⁩ by ⁨throws_lemy@reddthat.com⁩ to ⁨technology@lemmy.world⁩

https://www.techradar.com/pro/security/ai-generated-code-contains-more-bugs-and-errors-than-human-output

source

Comments

Sort:hotnewtop
  • shalafi@lemmy.world ⁨15⁩ ⁨hours⁩ ago

    AI code is great for getting over a hump, something you’re stuck on. Used ChatGPT (not the best for coding, I know) to help on a PowerShell script. There was exactly two references on the internet for what I wanted to do (Google Calendar/Sheets integration). Spent hours on the problem.

    ChatGPT gave me two things: One solution I didn’t know was a thing, another was a twist I hadn’t thought of. For giggles, I plugged the whole script in. Guess what? Failed instantly. Because of course it did.

    No. LLMs don’t write working code. Yes. They can help you, assuming you know what you’re doing in the first place. But here’s the crux of using AI:

    It does not, and cannot, give a shit about edge cases, user error and security.

    I wrote a simple PS script to swap my TV screens around for work, play and movies. Rolled it out in 30 minutes. Took me 2 more hours to stupid proof it, test it, wrap it an exe, make an icon, deploy it, all that. AI can’t do any of that.

    source
  • themurphy@lemmy.ml ⁨23⁩ ⁨hours⁩ ago

    Well, yeah. It also took 100x the time to write it.

    Vibe coding is only really useful for a coder. Because you understand and correct it.

    source
  • Harvey656@lemmy.world ⁨20⁩ ⁨hours⁩ ago

    Not if Yandev has anything to say about it.

    source
  • Etterra@discuss.online ⁨21⁩ ⁨hours⁩ ago

    I couldn’t program a single line of code if my life depended on it, and I could have told you that.

    source
  • Rhoeri@lemmy.world ⁨17⁩ ⁨hours⁩ ago

    But as long as the kids get to keep calling themselves “artists” and “musicians”, its all good.

    source
  • RagingRobot@lemmy.world ⁨17⁩ ⁨hours⁩ ago

    Depends on who the human is haha

    source
    • Bgugi@lemmy.world ⁨2⁩ ⁨hours⁩ ago

      Yeah, you’ve clearly never seen my code!

      source
  • goatinspace@feddit.org ⁨23⁩ ⁨hours⁩ ago

    Image

    source