• farmgineer@nord.pub
    link
    fedilink
    English
    arrow-up
    71
    arrow-down
    2
    ·
    10 hours ago

    I was doing a code review this week. There was nothing wrong with the code in terms of structure or performance, but it was doing this really weird operation with an ID after DB insert. I asked about it and the author was like “yeah, that’s weird; I don’t know why the AI did that. I’ll remove it.” My dude, I know you can write good code. Don’t be lazy!

    • GreenKnight23@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      arrow-down
      1
      ·
      7 hours ago

      I worked with a guy that 100% used AI to dev everything. didn’t even check to see if it would work before submitting a MR.

      It got to the point that I stopped reviewing them and just rejected them outright with a simple comment, “doesn’t work”.

      eventually he was fired. the evidence? the four months of shitty MRs he opened. the best part was, when I said “doesn’t work”, I was never wrong. none of his changes worked.

    • terabyterex@lemmy.world
      link
      fedilink
      English
      arrow-up
      25
      ·
      10 hours ago

      i dont understand that. i use ai for help reading through old stuff or to help me remember how tondo a thing i havent done in two years but blindly copy pasting blows my mind.

      • saltesc@lemmy.world
        link
        fedilink
        English
        arrow-up
        14
        ·
        9 hours ago

        Same. I also code up about 50% of stuff so all the structure is there, effectively as guardrails, before using AI. Then prompting it instructions that are effectively the solution, so it doesn’t come up with its own.

        Then, read through it all, replace things that could’ve been done better, and test.

        On average it’s maybe 15-20% quicker than manually coding the whole lot. Try skip any of those steps and the chances of it blowing out increase to the point I just end up doing it all anyway and it’s taken twice as long because of it.

        It’s alarming when people don’t even check.

        • gnutrino@programming.dev
          link
          fedilink
          English
          arrow-up
          8
          ·
          7 hours ago

          On average it’s maybe 15-20% quicker than manually coding the whole lot.

          Out of interest, how much is this 15-20% increase in productivity costing in tokens?

          • phutatorius@lemmy.zip
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 hours ago

            You’d really need to know the fully burdened cost of an hour of the person’s time who’d be doing the work, versus the cost of the tokens plus all the overheads involved in its administration and use of the AI solution (tokens, support, training). Same goes with the downsides-- you’d need to know how the rate of serious bugs changes when you incorporate the slop. Some of the defects will make it through reviews and testing and into prod.