• rothaine@lemmy.zip
    link
    fedilink
    English
    arrow-up
    5
    ·
    4 hours ago

    Opus-class and higher models are actually great at writing code, but maybe it’s language dependent? I primarily work in TypeScript.

    • aquovie@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      11
      ·
      3 hours ago

      More than anything, it depends on the developer using it. In my experience, most are just slop shovelers that don’t read or review what Claude does. Then it falls on the PR reviewer (me) to be an asshole: Did you review your own code? Do you understand what this part over here does? Why did you choose this method versus alternatives?

      Unless you tell Claude/Opus otherwise, it’s not going to take the initiative to refactor things, tidy up parts it didn’t touch, or hell, it won’t even spellcheck things. Can you really call it a language model if it outputs misspelled words? Its unit tests are great boilerplate but never comprehensive enough for me.

      Claude is the developer that puts zero pride or effort in their work beyond the bare minimum to not get fired.

      • MangoCats@feddit.it
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 minutes ago

        Prompting for refactoring, requirements, specifications, unit tests, integration tests, distribution / install scripts, all of those “good ideas” are things you need to nudge even Claude to do. Once you get it in the habit of doing them it does them automatically more often but still requires the occasional nudge.

    • CancerMancer@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      7
      ·
      3 hours ago

      I’m not terribly concerned if people write code and test it with AI, so long as they verify the results themselves.

      I recently saw someone try to add a PR to something on github with thousands of lines of changes and then they got mad when people didn’t want to do the free labour verifying it. That is a bullshit use of AI

      • MangoCats@feddit.it
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 minutes ago

        AI or far-east coders, we encourage them to keep their PRs as small as possible.