• Undaunted@feddit.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 months ago

    I’m sorry, because then your juniors must be really shit. I gave AI tools multiple chances already but they produce so much garbage. Even a very inexperienced junior will produce better code after a few weeks of training.

    • branch@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      How did you use LLM for coding? IDE integration? Prompt chat? Explaning the problem and hoping to one shot it? Genuine question, no judgement.

      I have only ever chatted with LLMs for code, refining the output until it does what I need it to. An example of this would be “I have a stream of bytes in Delphi, convert it to UTF-8” as starting prompt and updating with “don’t use X” or “use method Y”. It mostly works and sometimes it does not. It is very useful when I cannot find the solution on forums etc (or if my knowledge of Delphi is not good enough to extrapolate from what I can find).

      I do not think I have ever asked it to create anything bigger than a function (except this one time I created a C# application mostly with ChatGPT because learning C# was too much effort for a one-time side project).

      • Undaunted@feddit.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 months ago

        What I’m referring to is the IDE integration, like an “enhanced” auto complete. It is actually less helpful for me than the normal auto complete. Most of the stuff it generates is either not what I want to do or it doesn’t follow the code style of the rest of the software. Mainly a combination of the two.

        I also briefly tried generating whole methods from prompts but that never resulted an adequate solution ever, so writing it myself is orders of magnitude faster than correcting the bullshit that Copilot vomits out.

        The best use I’ve found so far is to solve usability problems, that I can’t find an easy enough solution to in the docs. For example some time ago I had to create a recusive CTE in a Postgres query. So I condensed my issue down to “I have a table A with columns X and Y and a table B…” and so on and fed that to ChatGPT and applied the result to my specific problem. Turned out I had two of my parameters swapped in previous attempted so it helped be successfully. But that’s the only kind of usage I get out of it and it happens once in 1-3 months tops.

        • branch@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          3 months ago

          Thanks for explaning. I have only used the IDE integration with copilot when it first came out and not since then. I was very obnoxious at times, prompting every time I stopped typing. Could be useful but also not what I needed at all.