I’m calling it now, the adoption of AI agents into software development will be one of the most costly mistakes in the field’s history. Agents cannot program, and it’s taking longer and longer to realize that they can’t. They are a highly sophisticated statistical model designed to mimic the distribution of programming. The output is broken, but in a way that’s getting harder and harder to detect. Which is exactly what you’d expect from an increasingly accurate statistical model.

  • 42firehawk@fedinsfw.app
    link
    fedilink
    English
    arrow-up
    12
    ·
    2 days ago

    But you’re forgetting the key difference that makes it so much worse - we can fix human mistakes especially if we can talk to the human to figure out how. With an llm we have no external reference, only poorly designed code where the comments are there to guide the writing, not describe what was written. So it’s much harder to debug an output, and the llm cannot be trusted to clean it up either.

    • Inucune@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      2 days ago

      A human can be held responsible. A machine cannot. If the machine writes bad code, and someone gets injured or killed because of it, who takes responsibility?

      I state again: a machine cannot be held responsible.

      • jostein@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        2 days ago

        It is never the coder that is responsible, it is the one who makes the code available to use. Often with humans, they are one and the same. With machines, they are not.

    • FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      6
      ·
      2 days ago

      You can totally fix AI-written code with AI. You tell it something is wrong, it tries to fix it.

      I did a recent experiment with AI writing a document format converter and that’s exactly what I did. It wrote some code, I checked the output, found a formatting issue or similar, asked it to fix it, repeat. It works unreasonably well and with Fable the final code isn’t even bad.

        • FizzyOrange@programming.dev
          link
          fedilink
          arrow-up
          5
          ·
          edit-2
          2 days ago

          Probably fine if you review the code carefully. And if you’re working in a domain that AI is decent at (e.g. web stuff). But even if it wasn’t it doesn’t mean AI cannot program.

      • Bane_Killgrind@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        8
        ·
        2 days ago

        You can fix problems, if you know they are there and there is a model of that problem being fixed.

        You can’t fix problems you don’t know are there, or do not have modeling.

          • FiniteBanjo@programming.dev
            link
            fedilink
            arrow-up
            8
            ·
            2 days ago

            Humans generally don’t hallucinate libraries or documentation. If there is a bug or error on a human maintaine REPO the human in charge will generally know what went wrong and how to fix it, the AI will just gaslight your ass because the AI has no idea.

          • 42firehawk@fedinsfw.app
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 days ago

            To add to the other response - it is much more difficult to work with Ai to debug inconsistent issues or similar unless you can understand the code and step through with a debugger to check for race conditions or similar.

            Recently I was working with an Ai tool for some c code that depending on machine ran wildly differently. The Ai was unable to identify any issues, and kept recommending fixes for hardcoding values or similar that I had to revert. The fix ended up needing to use valgrind to create a different enough environment to see how a race condition was made to properly have one async call delay for the other.

            AI can be powerful, and humans can be dumb. But if the code was human made, I would not have needed 3 hours to find a problem, and I wouldn’t have tried to turn to AI for a simple fix because I’d know what I was looking for to start with.