• stebo02@sopuli.xyz
    link
    fedilink
    arrow-up
    45
    ·
    1 year ago

    I never copy code from chatgpt. It’s not my code and it probably doesn’t work. However it is great at making suggestions on how to tackle a problem or how to improve your code. Use ChatGPT like Stack Overflow, with instant replies.

    • Railcar8095@lemm.ee
      link
      fedilink
      arrow-up
      17
      ·
      1 year ago

      This. I always use that example, ChatGPT is stack overflow or a very eager intern. Review and make test cases

    • Lucidlethargy@sh.itjust.works
      link
      fedilink
      arrow-up
      11
      arrow-down
      3
      ·
      1 year ago

      Man, it’s great until it contently feeds you incorrect information. I’ve been burned far too many times at this point…

      • stebo02@sopuli.xyz
        link
        fedilink
        arrow-up
        11
        ·
        1 year ago

        That’s why you should always verify the information with other sources. Just like information you get from any other website/person. It’s not any different.

      • Gabu@lemmy.ml
        link
        fedilink
        arrow-up
        7
        ·
        edit-2
        1 year ago

        TBH, if you can’t almost instantly figure out why and how ChatGPT suggested bad code, you shouldn’t be using it at all - you’re out of depth.

        It’s why I’ll gladly use it to suggest markdown or C code, but never for a complex Python library.

      • R0cket_M00se@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        1 year ago

        Blaming the AI for misinformation is like blaming Google for giving you bad search results.

        Learn how to parse the data and fact check it. Usually you can get a hyperlink to the source to see if it’s even reasonably trustworthy.

    • tweeks@feddit.nl
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      Plain copy paste without a critical view is not recommended, but it surely provides good pieces of code from time to time. Especially in obscure frameworks/languages, compared to what can be googled.

      ChatGPT 4 is a really big difference with 3.5 though. What took me hours together with the 3.5, was fixed in a few minutes with 4.