• Ledivin@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    13 hours ago

    Why is Claude writing code that I’m supposed to read?

    I wasn’t going to read it line-by-line. I’d skim it, run the tests. So why make AI write in a format optimized for human readers who aren’t reading?

    If you aren’t reading your LLM’s code line-by-line, you’re a fucking moron and deserve the AI hate.

    • rollin@piefed.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 hours ago

      Hmm it’s an interesting thought. If you’re satisfied with your tests - with their coverage and their rigor - then really there shouldn’t be a need to read code.

        • rollin@piefed.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 hours ago

          The code for the tests, yeah. But not the code for the app itself. If you’ve written tests that you are satisfied fully cover all requirements including edge cases, you can satisfy yourself that the app does what you want it to without looking at the app code.

          Test-driven development but with an LLM doing the actual development.

  • schnurrito@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    4
    ·
    13 hours ago

    really, the first? I think Brainfuck was also not built for humans and has been around for a while…

    (this apart from the other obvious things to write about this idea…)