• NotMyOldRedditName@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    9 hours ago

    I really love when I ask the AI to do something, and it gives me 40-50 lines to do it, and I tell it there’s no way something like that should take that much code, and it’s like oh, ya you’re right, here’s a 5 line version using something from from the standard sdk.

    I’ve tried to put in its memory to not do things like that, but it keeps doing it.

    • limdaepl@feddit.org
      link
      fedilink
      English
      arrow-up
      6
      ·
      9 hours ago

      Even without external libraries, it routinely comes up with solutions that are at least 3-4x the complexity and LOC than how I would implement it.

      • douglasg14b@lemmy.world
        link
        fedilink
        English
        arrow-up
        7
        ·
        8 hours ago

        It’s because the average quality of code that they are trained on is like that. Most code that is written by humans is slop, and the models represent that.

        Producing overly complicated solutions to uncomplicated problems

        • NotMyOldRedditName@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          8 hours ago

          It often can do it better if you prod it though. Its just so weird that its really hard to get it to do that. It knows how even if it is trained on poor over complicated stuff.

          • Prox@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            3 hours ago

            How much time does that prodding take vs how long would it take you to just write the (better) code yourself?

            • NotMyOldRedditName@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              ·
              4 minutes ago

              Its usually just 1 or 2 messages saying i dont like this so its only the time it takes to read it and say try again. A minute or two?

              Its faster to just ask to do it again in most cases.