• Gompje@lemmy.world
    link
    fedilink
    arrow-up
    42
    ·
    1 year ago

    Haha indeed!

    It’s funny when it starts to just invent things. Like packages, with version number!, that… do not exists…

    Or when it outputs code without using the variables …

    The most annoying thing is imho that it keeps explaining everything al the time. Even when I prompt “you have a working app with vuejs…” and others it sometimes still explains how to setup the app.

    That said: the tool has become a staple in my workflow whenever I need a starting point. Or have to do some math algorithmic things

  • 👍Maximum Derek👍@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    36
    ·
    1 year ago

    Maybe it’s because I’m only using it as plan B or C (after the documentation has already failed me), but I have never gotten any usable code out of chatGPT.

    And yet co-pilot is able to finish my code perfectly after I type the first few characters… even though they’re the same model.

    • AmbientChaos@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      10
      ·
      1 year ago

      I think co-pilot works better because it has the context of the whole project for reference when suggesting auto completion. I’ve gotten a lot of unusable junk from it too though

    • dan@upvote.au
      link
      fedilink
      English
      arrow-up
      9
      ·
      1 year ago

      Co-pilot isn’t using the same model. They’re using a model that’s been trained on a LOT of open-source code.

        • dan@upvote.au
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Not that I’m aware of. Even if the input is public data, the actual training scripts and resulting model tend to be closed-source. Meta’s one of the only major companies I know of to release their models under a somewhat-open-source license.

    • legion02@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      I go the other way with it. Give me something broken but close and I’ll use the documentation to fix it.

  • AdamEatsAss@lemmy.world
    link
    fedilink
    arrow-up
    17
    ·
    1 year ago

    I feel like for simple algorithms chatGPT could be good. Like as a reference for how to code something. But if it’s simple code I often find it faster to just write it myself then reorganize whatever it makes to work with and match the style of other code in my codebase. And if it’s complex code I often find it harder to describe what I want then to just make it.

    • flossdaily@lemmy.world
      link
      fedilink
      arrow-up
      22
      ·
      1 year ago

      In my experience, what makes gpt-4 great for coding is its astonishing knowledge of available software libraries, built-in interface features, etc.

      I’ll tell it the task I want done, and it will tell me where to find, and how to install the necessary dependencies.

      With zero experience in browser extension design, gpt-4 helped me to build an incredibly complicated Chrome extension, using vector database; creating a custom, cloud-based server; web scraping with headless browsers, voice recognition, speech synthesis, wake-word capabilities, and a sophisticated user interface. I had ZERO experience with ANY of these.

      For me, using gpt-4 was like collaborating with a just okay programmer, but one who had extensive experience with literally every programming language, API, protocol, etc.

      And it was a collaboration. We would talk through problems together. I would make observations and guesses about why a block of code wasn’t working, and it would tell me why I was wrong, or alternately tell me I was right, and produce a fixed version.

  • kropeper@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    If there are even any docs… I usechatgpt when i can find no usefull docs. Quite often it can find some information somewhere.

  • Patient_runner@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    1 year ago

    This is so apt ! though it does help to get difficult syntax for small fragments working quickly so you can get some proof for your concept instead of struggling with syntax errors for an hour

  • flashgnash@lemm.ee
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    1 year ago

    Unless it’s Microsoft documentation in which case it feels more like bill gates beating me over the head with the frying pan until I give up and find an alternative way to achieve my goal

    • SpicaNucifera@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Or AWS documentation. Trying to use it feels like getting tortured with thumbscrews.

      I hate it so much. It’s a cyclical maze of ignorance and frustration.

      Google, on the other hand, may have my hand in marriage.

  • MajorHavoc@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Programming with AI help is like having the expert chef at my shoulder, giving me tips, but he’s high as hell on three different mild altering drugs.

    Then he’s like “That cake needs some lemon juice. Trust me.”