• @amotio@lemmy.world
    link
    fedilink
    2517 days ago

    I have no idea what vibe coding is, can someone ELI5 it to me?

    I have tried AI to get some rough C# for my hobby game but even that was unusable.

    • Luffy
      link
      fedilink
      38
      edit-2
      17 days ago

      Vibe coding is basically having no idea about coding and using the AI to make snippets of Code for you

      Like if you want to programm snake, you would prompt it:

      • Tell me what parts of code are required to programm snake in python

      then it would tell you like:

      1. you need a programm to make a grid system
      2. you need an array which can go down a tickrate
      3. etc pp

      so you tell it like:

      • Generate me code, that does xy
      • Generate me code that takes the input of xy and does z with it

      and so forth, then you just paste everything into a txt and ask the AI to debug it for you and hope it works

      • @ramble81@lemm.ee
        link
        fedilink
        1017 days ago

        The people who need vibe coding shouldn’t be using it. And the people who can use it, don’t need it.

        • @spooky2092@lemmy.blahaj.zone
          link
          fedilink
          English
          4
          edit-2
          17 days ago

          Idk about the last bit. I’ve done some vibe coding debugging to fix game mods written in languages and frameworks I don’t know and have no interest in learning at the moment. I still look over the output, but given a lack of knowledge, I’d still consider it vibe based

          I don’t have the bandwidth to know enough about everything I encounter to be passable, and sometimes I just want to make some random thing work with the minimal amount of effort so I can get back to the actual task at hand.

      • @frunch@lemmy.world
        link
        fedilink
        817 days ago

        This sounds terrible, lol! Are there any examples that can be pointed to? I’d love to see one of these constructs.

        • Luffy
          link
          fedilink
          3
          edit-2
          17 days ago

          On tilvids.com some dude called picopixl is doing tutorials about this

          https://tilvids.com/w/oyddhsnfHUFToBEmpEZpEg

          And yeah, its pretty great what it could do, but for someone who (is his own words) can tweak the code so it works, it tool longer to make a Prompt than just coding the Game yourself

          Also, Tetris in JS is like Babys first JS project, so even if you really wanted to just get Tetris from somewhere, you could have just git pulled any github project

    • elgordino
      link
      fedilink
      3717 days ago

      ‘Vibe coding’ is where you code only with prompts and never look at the generated code.

      Seems like a great way to create insecure unmaintainable code if you ask me.

      • Luffy
        link
        fedilink
        717 days ago

        Also I just dont get why you would ever generate code

        Like, you have no idea how to code something? Sure, just ask it about methods how to do it. But generating code too? Cant you RTFM?

        • @frunch@lemmy.world
          link
          fedilink
          1217 days ago

          I think you’re severely underestimating how lazy some people are, lol. I totally get what you’re saying, and from a logical perspective it makes sense. It’s just that if you survey enough people, i really think you’d be surprised at how little effort some are willing to put forth for just about anything

        • idunnololz
          link
          fedilink
          617 days ago

          Isn’t the reason obvious? To save time? I’m not saying it’s a good thing but it seems prettyyyy obvious why people are doing it.

          • Dragon Rider (drag)
            link
            fedilink
            English
            917 days ago

            But it’s going to take hours of debugging every time. If you actually learn how to write code, you’ll get better at it over time and reuse common functions. It’ll take less time as you get better.

            • idunnololz
              link
              fedilink
              217 days ago

              Well… Just because you can code does not guarantee you will find it enjoyable. It’s pretty common for people to like certain aspects of coding but not others. For instance, I personally find writing unit tests boring. So if something came by that made writing them less mundane I would certainly be enticed.

          • Luffy
            link
            fedilink
            817 days ago

            Save Time where? If you want to code more than snake, you need to have a basic knowledge of coding anyway, and once you know how to code, you will want to code in your own style. And if you just want to make basic programs, just fork someones github project and change a few lines.

            • @qarbone@lemmy.world
              link
              fedilink
              English
              917 days ago

              You’re saying this with your understanding of the field. The people pushing this are either untrained (and thus don’t know what’s going wrong) or are trying to milk money out of the former.

            • idunnololz
              link
              fedilink
              317 days ago

              Not all code needs to be held to the highest standard. Sometimes you really just want a throwaway script.