• Sparking@lemm.ee
    link
    fedilink
    English
    arrow-up
    105
    arrow-down
    3
    ·
    5 days ago

    What are you guys working on where chatgpt can figure it out? Honestly, I haven’t been able to get a scrap of working code beyond a trivial example out of that thing or any other LLM.

    • 0x0@programming.dev
      link
      fedilink
      English
      arrow-up
      45
      arrow-down
      1
      ·
      5 days ago

      I’m forced to use Copilot at work and as far as code completion goes, it gets it right 10-15% of the times… the rest of the time it just suggests random — credible-looking — noise or hallucinates variables and shit.

        • 0x0@programming.dev
          link
          fedilink
          English
          arrow-up
          4
          ·
          4 days ago

          I would quit, immediately.

          Pay my bills. Thanks.
          I’ve been dusting off the CV, for multiple other reasons.

          • 9bananas@lemmy.world
            link
            fedilink
            English
            arrow-up
            3
            ·
            4 days ago

            how surprising! /s

            but seriously, it’s almost never one (1) thing that goes wrong when some idiotic mandate gets handed down from management.

            a manager that mandates use of copilot (or any tool unfit for any given job), that’s a manager that’s going to mandate a bunch of other nonsensical shit that gets in the way of work. every time.

            • 0x0@programming.dev
              link
              fedilink
              English
              arrow-up
              2
              ·
              4 days ago

              It’s an at-scale company, orders came from way above. As did RTO after 2 years full-at-home, etc, etc.

    • Terrasque@infosec.pub
      link
      fedilink
      English
      arrow-up
      27
      arrow-down
      1
      ·
      edit-2
      5 days ago

      When I had to get up to speed on a new language, it was very helpful. It’s also great to write low to medium complexity scripts in python, powershell, bash, and making ansible tasks. That said I’ve been programming for ~30 years, and could have done those things myself if I needed, but it would take some time (a lot of it being looking up documentation and writing boilerplate code).

      It’s also nice for writing C# unit tests.

      However, the times I’ve been stuck on my main languages, it’s been utterly useless.

      • MagicShel@lemmy.zip
        link
        fedilink
        English
        arrow-up
        30
        arrow-down
        1
        ·
        5 days ago

        ChatGPT is extremely useful if you already know what you’re doing. It’s garbage if you’re relying on it to write code for you. There are nearly always bugs and edge cases and hallucinations and version mismatches.

        It’s also probably useful for looking like you kinda know what you’re doing as a junior in a new project. I’ve seen some shit in code reviews that was clearly AI slop. Usually from exactly the developers you expect.

        • Sparking@lemm.ee
          link
          fedilink
          English
          arrow-up
          2
          ·
          20 hours ago

          Yeah, I’m not even that down on using LLMs to search through and organize text that it was trained on. But in it’s current iteration? It’s fancy stack overflow, but stack overflow runs on like 6 servers. I’ll be setting up some LLM stuff self hosted to play around with it, but I’m not ditching my brain’s ability to write software any time soon.

      • prettybunnys@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        4
        ·
        5 days ago

        I love asking AI to generate a framework / structure for a project that I then barely use and then realize I shoulda just done it myself

    • CeeBee_Eh@lemmy.world
      link
      fedilink
      English
      arrow-up
      13
      ·
      5 days ago

      I’ve been using (mostly) Claude to help me write an application in a language I’m not experienced with (Rust). Mostly with helping me see what I did wrong with syntax or with the borrow checker. Coming from Java, Python, and C/C++, it’s very easy to mismanage memory the exact way Rust requires it.

      That being said, any new code that generates for me I end up having to fix 9 times out of 10. So in a weird way I’ve been learning more about Rust from having to correct code that’s been generated by an LLM.

      I still think LLMs for the next while will be mostly useful as a hyper-spell checker for code, and not for generating new code. I often find that I would have saved time if I just tackled the problem myself and not tried to reply on an LLM. Although sometimes an LLM can give me an idea on how to solve a problem.

    • sugar_in_your_tea@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      12
      ·
      edit-2
      5 days ago

      Same. It can generate credible-looking code, but I don’t find it very useful. Here’s what I’ve tried:

      • describe a function - takes longer to read the explanation than grok the code
      • generate tests - hallucinates arguments, doesn’t do proper boundary checks, etc
      • looking up docs - mostly useful to find search terms for the real docs

      The second was kind of useful since it provided the structure, but I still replaced 90% of it.

      I’m still messing with it, but beyond solving “blank page syndrome,” it’s not that great. And for that, I mostly just copy something from elsewhere in the project anyway, which is often faster than going to the LLM.

      I’m really bad at explaining what I want, because by the time I can do that, it’s faster to just build it. That said, I’m a senior dev, so I’ve been around the block a bit.

    • daniskarma@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      2
      ·
      edit-2
      5 days ago

      I used it a few days ago to translate a math formula into code.

      Here is the formula: https://wikimedia.org/api/rest_v1/media/math/render/svg/126b6117904ad47459ad0caa791f296e69621782

      It’s not the most complicated thing. I could have done it. But it would take me some time. I just input the formula directly, the desired language and the result was well done and worked flawlessly.

      It saved me some time typing around. And searching online a few things.

    • Kng@feddit.rocks
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 days ago

      Lately I have been using it for react code. It seems to be fairly decent at that. As a consequence when it does not work I get completely lost but despite this I think I have learned more with it then I would have without.