• greasewizard@slrpnk.net
    link
    fedilink
    arrow-up
    25
    ·
    6 days ago

    Its hilarious to me that before AI, I would suggest we refactor our code base to make it more readable and easier to understand and would get all the excuses. “Oh we don’t have the time”. " we could introduce bugs". “We would need to test that”

    Now when I mention to make the code easier for an LLM to understand, they’re chomping at the bit for it.

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

      Yeah… when the only documentation is CLAUDE.md

      Still you can see why right? Improving docs/understandability for AI is good for them - they get more capable AI. Improving it for humans only helps other people, which is less of a priority.

    • deegeese@sopuli.xyz
      link
      fedilink
      arrow-up
      8
      ·
      6 days ago

      Before AI, refactoring was expensive, high risk, unclear payoff.

      With AI, it’s cheap, higher risk, obvious payoff.

        • Reality@feddit.org
          link
          fedilink
          arrow-up
          2
          ·
          4 days ago

          I don’t care about work ethic, I want clean and tested code, that performs well and is easy to extend and replace

      • Caveman@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        4 days ago

        I also got to refractor a major headache away, it was finally cheap enough to do all in one go instead of putting in a new pattern and incrementally change. The “Do one, do one, now repeat” prompt pattern works really well for these.