• ArbiterXero@lemmy.world
    link
    fedilink
    English
    arrow-up
    65
    arrow-down
    1
    ·
    1 year ago

    As someone that uses ChatGPT daily for boilerplate code because it’s super helpful…

    I call complete bullshite

    The program here will be “hello world” or something like that.

    • LazaroFilm@lemmy.world
      link
      fedilink
      English
      arrow-up
      26
      arrow-down
      1
      ·
      edit-2
      1 year ago

      Absolutely I can create a code for your app.

      void myApp(void) {
        // add the code for your app here
        return true;
      }
      

      You may need to change the code above to fit your needs. Make sure you replace the comment with the proper code for your app to work.

    • Semi-Hemi-Demigod@kbin.social
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      It’s great for things like “How do I write this kind of loop in this language” but when I asked it for something more complex like a class or a big-ish function it hallucinates. But it makes for a very fast way to get up to speed in a new language

        • Semi-Hemi-Demigod@kbin.social
          link
          fedilink
          arrow-up
          2
          arrow-down
          2
          ·
          1 year ago

          It’s a lot less in my opinion, because you can just ask it a question rather than having to read and interpret things. Every programming tutorial in every language is going to waste my time explaining how loops and conditionals work, when all I want is how this language does them.

            • Semi-Hemi-Demigod@kbin.social
              link
              fedilink
              arrow-up
              1
              arrow-down
              1
              ·
              1 year ago

              Right, but you can’t give it the variable names you’re using and have it fill them in, and if you want to do something inside that loop with

              I can ask ChatGPT “Write me a loop in C# that will add the variable value_increase to the variable current_value and exit when current_value is equal to or greater than the variable limit_value, with all the variables being floats”

              You won’t find that answer immediately on the Internet, and you’re more likely to make errors synthesizing the new syntax.

              But you do you, I’ll keep using ChatGPT and looking like a miracle worker.

              • Vlyn@lemmy.zip
                link
                fedilink
                English
                arrow-up
                2
                ·
                1 year ago

                If writing simple loops with ChatGPT makes you a miracle worker then you might have other problems than AI.

                And even simple things break down when you ask it about using library functions (it likes to hallucinate heavily there).

                • Semi-Hemi-Demigod@kbin.social
                  link
                  fedilink
                  arrow-up
                  2
                  arrow-down
                  1
                  ·
                  1 year ago

                  It’s not that writing loops does it, it’s that I can ask ChatGPT to hand me pre-assembled parts that I can snap together instead of typing them out with my squishy human fingers. And I can do it for pretty much any language without too many syntax errors.

                  • Vlyn@lemmy.zip
                    link
                    fedilink
                    English
                    arrow-up
                    3
                    ·
                    1 year ago

                    I’m a senior software developer (Currently .NET backend with DevOps). Writing code is probably less than 10% of my work day. And in that 10% Visual Studio autocomplete does most of the typing. It’s frequently wrong, but it’s good enough plenty of the times.

                    Actually working on software consists of writing specifications, security concerns, architecture, talking management out of dumb decisions, having meetings with stakeholders or other companies, working on automatic deployments, writing unit and integration tests, refactoring, performance optimizations, database migrations, bugfixing, …

                    Green field writing new code is rare and that’s mainly what AI can do (80% correct, maybe). Most of real programming work happens on existing code.

    • Ertebolle@kbin.social
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      OTOH, if you take that hello world program and ask it to compose a themed cocktail menu around it, it’ll cheerfully do that for you.

    • kitonthenet@kbin.social
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 year ago

      I can totally see the use case for boilerplate, but I’m also very very rarely writing new classes from scratch or whatever.

      As always, proof of concept or gtfo