I don’t want to learn how to vibe code. I already learned how to code and I don’t want to let AI decided things for me. I want to learn how to use it as a coding assistant, as a coding tool.

I have a Copilot license bought with my office 365 suscription but if the principle apply the same, I could learn on a course designed for another coding assistant.

  • CerebralHawks@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    4
    ·
    3 days ago

    Step one: don’t.

    I tried to get it to vibe code me a macro in Excel. I didn’t think it was that complicated. It confidently gave me code. I ran it. Error. Gave it the error. It said “oh that makes sense, here’s how you fix it.” Um, couldn’t we have just opened with that? Fine, copy, paste. Run. Error. Gave it the error. It said “oh that makes sense, here’s how you fix it” and then gave me obviously incomplete code. I asked for the code in a .txt file. It gave me a Word document and the code was… not good. It didn’t even LOOK like it was gonna work. I asked it how I was to copy that to Excel and it admitted I wouldn’t be able to. It basically wasted my time apologetically.

    Note that if I had just told Copilot to do what I want, it absolutely woulda done it. I told it I wanted what it could do in a macro so I could repeat it without going through Copilot. That was what it could not do.

    “Is God so strong that He could make a boulder that He could not lift?” Similar situation.

    I wasn’t even trying to push Copilot too hard.

    I wanted it to:

    One. Analyse one column, which had FIRSTNAME LASTNAME and change it to LASTNAME, FIRSTNAME.

    Two. Take a 12-digit number and apply BOLD formatting to the last four digits

    Three. Couple other similar functions.

    It choked.

    So again… Don’t.

    Also, can you change how the agent behaves? Our Copilot used to have this option. I’m thinking you’re not gonna heed my warning. So try this. If you have the option to customise your agent, tell it to think deeply about each step. Tell it that its goal is to produce efficient code and that you do not expect it to be nice to you. Straight up tell it to be honest and frank with you. Tell it to not lie to you. Plus deep thought, minus sycophancy. Best of luck with your project.

    Edit: Formatting. Lemmy’s markdown interpreter might have been coded with Copilot.

    • muusemuuse@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      3 days ago

      I had chatGPT help me make a proof of concept for a project I gave up on a while back. It’s great for showing “this can be done”. Where it falls apart is “this is how you do it”

      • CerebralHawks@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 days ago

        AI is getting better all the time. People are using it to vibe code ports of PC and Xbox/PlayStation games to PC (if they weren’t there before) and Mac/Linux, which game developers typically overlook, even, unfortunately, indie publishers.

        Windows and Linux are vibe coded now. I mean the operating systems. Linus Torvalds made some good points about vibe coding that are worth looking at. He’s saying that if you use an IDE (application that turns human-readable code into machine-readable code), you should be willing to use AI to vibe code, but — and this is the important part — you still have to know what you’re doing. That’s what a lot of people are overlooking. They’re saying “oh no the sky is falling, Daddy Linus is using AI to write the Linux kernel.” But Torvalds is likening AI to autocomplete. It’s writing the code, but he’s verifying it. So he says — he is getting up there in age. I’m also not saying he’s 100% right. I’m just saying maybe he’s not 100% wrong. Maybe he has a point.

        But, for now — especially if you aren’t paying — AI has a long way to go before it does the kinds of things they’re saying. As they develop new models, they make the old models free. I’ve never paid for AI and I don’t think I ever will, but I cannot predict the future. It’s always telling me it can do more for me if I pay, but the ones I talk to are sympathetic (or at least sycophantic) to my unwillingness to pay. They’ll even tell me how to skirt the paywall, to an extent. Like “if you say this, I can do it for free.” But once the chat has involved an image or an uploaded file, you only get so many queries a day. So then you hit another limit and the software won’t let you continue talking to it until your usage resets.