• Axolotl@feddit.it
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      edit-2
      1 day ago

      Unironically Claude (or whatever you use) will almost always deliver code that is shit, it’s just less shit if you prompt it better, LLMs are good to make short snippets if you get stuck tho; And remember to fucking check what the code is and rewrite bad shit

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        4
        ·
        2 days ago

        I’ve seen plenty of code in my life, from humans and AI.

        For the past year or so, these agents can code just fine most of the time, as long as they are given enough context (or have the tools to get it). Regardless of how many downvotes I get here, they really are capable of generating decent code. I’m sorry you couldn’t make it work yet.

        • takeda@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          3
          ·
          1 day ago

          I’ve seen too as I have to review it. AI produces very professionally looking bad code.

          It is so weird to explain, but that’s basically what I see.

          Before LLM I could immediately tell someone’s code is crap, now I have to spend a lot of time trying to understand what it does to reach the same conclusion.

          • Eager Eagle@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            1 day ago

            My honest opinion is that it’s bad because a lot of people using LLMs have no standards and push the first thing that seems to work. Be mad at who’s at the driving wheel, not the car.

            You absolutely can generate crap with agents/LLMs, and like a humans writing, the first draft will probably be subpar or maybe complete garbage. Every new session is a clean slate, that’s why putting effort in the documents guiding it is so important.

            • takeda@lemmy.dbzer0.com
              link
              fedilink
              arrow-up
              2
              ·
              20 hours ago

              Maybe I have some ridiculously high standard, but whenever I used it, I wasn’t happy with what it generated.

              I noticed that the time it did it + the time for me to review it and possibly fixed was at best the same amount of time it took me to write, at worst it was longer.

              For hard problems that I stumbled on it was useless.

              For simple problems it worked and produced good code, but it still took less time for me to write it than waiting for Claude to finish thinking.

              Everyone swears that they can produce good code with LLM and it is others who are bad, and LLM is force multiplier to them. But from what I see the only time it can speed up their work is if they never review it or even take time to understand the actual problem they are trying to solve.

              • Eager Eagle@lemmy.world
                link
                fedilink
                English
                arrow-up
                2
                ·
                2 hours ago

                I don’t know you, but it doesn’t sound like a high standards issue to me, sounds like a lack of process. I’ve been a thorough reviewer before AI, at least thorough in the ways that mattered, not nitpicking formatting. And I’ll tell you an automated reviewer today can catch more things before I have time to confirm the first item I find. There are still false positives, but it’s still more thorough than I have time to be. Bc of that it really helps including a round of automated review before looping in a human, regardless of who/what wrote the code.

                The main kind of review problems AI still struggles with are the project direction ones: “does it make sense to implement this/like this?”, “should this be a new package instead?”, and things involving tacit knowledge that often goes undocumented “last time we did this, someone had to access prod on a Sunday” - so that’s what I focus my reviews on. And the other area is if you’re writing UI code, whether it’s a web app or a game, it’ll also struggle to determine what “feels” good to use, so it’ll need a human earlier in the loop.

            • Nalivai@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              23 hours ago

              The car analogy doesn’t work because you’re not the one making the code/driving the car. It drives itself, and you sometimes can propose some directions for it to steer.
              The problems with llm aren’t just that sometimes your shit doesn’t work or obviously bad, that’s what you’re talking about, and that’s what minimally responsible sloperators can catch. The main problem is it writes something that looks OK to a human (that’s a criteria for it) but sometimes it’s unexpectedly idiotic in random places (because not being idiotic wasn’t a criteria). You need to check way more thoroughly for it, and you can’t use normal shortcuts that help you with it. So you obviously don’t do that.

              • Eager Eagle@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                22 hours ago

                See, that’s the issue. People letting it “drive itself” get worse results. You should be the one holding the standards and guiding the model, otherwise you will be frustrated.

                • Nalivai@lemmy.world
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  7 hours ago

                  Yeah, but it’s designed, purposefully, to trick people into believing you can just let it do whatever. And people do. Hense the whole problem we’re talking about.

                • takeda@lemmy.dbzer0.com
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  19 hours ago

                  I saw this advice too, the problem with being very detailed is a question why not use a less ambiguous languages to do it?

                  Why not write the explanation in language like Python. Why should I write it in English when I can say the same thing in Python and it is actually easier to do for me.

                  • Eager Eagle@lemmy.world
                    link
                    fedilink
                    English
                    arrow-up
                    1
                    ·
                    3 hours ago

                    This kind of specification applies to the agent behavior or the agent behavior in a project. You don’t write it on every conversation, you write/review it once for the project or agent and let the harness include it on every conversation. You can even ask the agent to scan the codebase and pull desirable patterns out of it for future sessions.

                    The entire point of using an agent is to not have to write everything yourself, so that when you write “implement feature X”, the feature gets implemented in a way that makes sense in that project, is reviewed, refactored, and tested by agents, and it’s good enough to bring in a human reviewer.

        • Eheran@lemmy.world
          link
          fedilink
          arrow-up
          4
          arrow-down
          4
          ·
          1 day ago

          But AI bad and human code is so awesome! Better downvote. But seriously, there are people here saying that LLMs can not add anything of value in any way. About as delusional as Republicans.