• Karjalan@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 hours ago

    I was using phoenix and elixir right when Chat gpt came out and people were like “it’ll take our jerb”.

    I tried to get it to build a basic module that built a playing deck of cards. At first it looked OK, the basic layout made sense, but then I realised it called functions that weren’t there, some functions were just empty, since logic was wrong and actually it was all around terrible.

    I tried to fix it with prompts and it got worse or implemented my suggestions incorrectly and was still broken.

    Ultimately it took a lot longer to get no where than if I’d just written it by myself. But I could see how someone with not much knowledge in the area could see the output and be impressed.

    • setVeryLoud(true);@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      Oh yeah Copilot just spirals deeper into insanity the more you use it.

      It’ll sometimes spit your own code back at you and say “there, I fixed it”, and it does the same when you point it out ad vitam aeternam. I believe this is a case of hardcore over fitting the original prompt.

      • Karjalan@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 hours ago

        I recall saying something like “the function ‘draw_card’ doesn’t mutate the deck variable” and it goes “I’m sorry, you’re correct. I’ll fix it to mutate the deck variable” and it returns the same code but changes the the card variable inside function to be called “mutate_the_deck”.

        I felt much safer after that interaction.

  • Kojichan@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    6 hours ago

    Mine kept “thinking” in comments…

    // Figure out what the user is requesting, then send an appropriate response.

    Even I don’t know what I’m thinking half the time.

  • flamingo_pinyata@sopuli.xyz
    link
    fedilink
    arrow-up
    50
    ·
    1 day ago

    A couple of years old, but in the early days they didn’t care about sanitizing non-English content. Leading to pearls like this:

  • LeninOnAPrayer@lemm.ee
    link
    fedilink
    English
    arrow-up
    22
    ·
    1 day ago

    Well. Do they? Maybe write a base class you can extend to cock, balls, breast, dildo that can work with objects mouth, asshole, and pussy.

    Get to work OP. The world needs this.