• Victor@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    16 hours ago

    But surely you test the code and review it, right? That’s how you reinstate trust in what it outputs?

    Disclaimer: I’ve never used AI to code, not even copilot.

    • CXORA@aussie.zone
      link
      fedilink
      English
      arrow-up
      5
      ·
      12 hours ago

      Based on my coworkers… no.

      They get the Ai to write the code, and the tests.

      Then hand it over to me to review and test.

      Its all overly verbose, does things that are not required or desirable, and insists on re-writing existing code to match its own style.

      I hate it passionately.

      • Victor@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 hours ago

        Damn. 😢

        Sounds awful. I would just reject these PRs, dude. Tell them that AI is good for scaffolding and creating a draft, but you gotta maintain the human quality assurance, and that’s not your job, it’s theirs.

    • BlameTheAntifa@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      16 hours ago

      You mean rewrite it all from scratch? If you have any kind of standards that is what you end up doing. If you know what you’re doing you do it right the first time and move on. Using AI for coding it like trying to babysit the most inept, inexperienced intern to ever walk the earth. It wastes time and the end result is far worse.

      • Victor@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        4 hours ago

        That’s what I’m afraid of, and it doesn’t seem like employers are aware of this in general. Irks me especially as a consultant.

    • Serinus@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      16 hours ago

      It’ll sometimes do dumb and/or redundant or too complicated shit. Pile up a couple of those and your codebase can get unmaintainable fast.

      I find if you give it small chunks and keep an eye on it, it’s great.

      I think one of my recent prompts was “Create a procedure that creates an example configuration file with placeholder values. If a config file doesn’t exist on start, give a warning and create the example config.”

      It also works great as a replacement for an ORM.