• JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 hour ago

    This is funny, and I do think it’s fair to take little jabs at vibe coders, but just be careful. When I was learning to play a game in the past I asked a question. People thought the answer was obvious because the rules were on the thing I was asking about, but I was so new to the game I didn’t even know what those words meant. If this was any other context, I’d be hesitant to give someone flak for not knowing a technical term like that. (The context being that somebody vibe coded something.)

    • YaBoyMax@programming.dev
      link
      fedilink
      English
      arrow-up
      4
      ·
      41 minutes ago

      On the contrary, the borrow checker is basically the first thing you learn about when writing in Rust as it’s the primary “gimmick” of the language. Anyone writing a non-trivial program should have at least heard the term before, even if they don’t fully understand how it works.

  • HrabiaVulpes@europe.pub
    link
    fedilink
    arrow-up
    2
    ·
    54 minutes ago

    I do not get it. Aside from the fact that the supposed “creator” writes a bit like he processes every sentence through AI-translation software… which might as well be reddit feature.

    • YaBoyMax@programming.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      43 minutes ago

      The borrow checker is a feature of Rust’s compiler which places strict constraints on ownership of data to guarantee memory safety. It adds a lot of friction to writing Rust code if you’re not experienced with the language (or sometimes even if you are). OP refers to the “language restriction of Rust”, seemingly talking about the borrow checker, but has never even heard of it. It’s kind of like someone claiming they didn’t vibecoded their C++ project but having no idea what the STL is.

      • HrabiaVulpes@europe.pub
        link
        fedilink
        arrow-up
        1
        ·
        37 minutes ago

        Sounds like java garbage collector but backwards… perhaps I will understand it better if I ever try Rust.

        Thank you for explanation, YaBoyMax

  • plc@feddit.dk
    link
    fedilink
    arrow-up
    7
    ·
    5 hours ago

    We need a programmer_tragedy community for this stuff instead. 💀🤡

  • Rose@slrpnk.net
    link
    fedilink
    arrow-up
    27
    ·
    8 hours ago

    I wouldn’t say it was borrowed

    Reminds me of a disclaimer in a public domain software package: “No warranty expressed or implied. If it breaks, you get to keep both pieces.”

  • DupaCycki@lemmy.world
    link
    fedilink
    arrow-up
    20
    arrow-down
    1
    ·
    9 hours ago

    ‘Language restriction’. More like ability and/or willingness to learn restriction.

    And of course a vibe coder can’t write proper sentences with punctuation. If this is what their AI coding chatbot sees, I almost pity it.

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 hour ago

      I’m not sure if your comment means you’re rusty (heh) or a novice who hasn’t tried programming in a while, so I’m sorry if this comes across as condescending. The best advice I try to give everyone is to chase the fun. That advice applies both to people learning and hobbyists doing stuff.

      I see a lot of folks argue about what’s the best way to begin or where the best place to begin is. There’s no best way. Everything builds into each other. You become a better programmer regardless of what language you choose.

      Rust was fun! I fiddled with it a bit a few years ago. The only real frustration I had was that it complained a lot about half correct programs. Like in other languages I may have just been able to put some bad code or something in some place I didn’t really care about and wasn’t focusing on, but Rust is very strict. It’s been long enough now that I forget exactly what specifically bothered me. It could have just as easily been that it was because I didn’t know it well so the compiler was just the messenger of that lol. Other languages could have just blown up at runtime.

      • TotallyWorthLife (She/Her)@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        59 minutes ago

        I’m more a novice that hasn’t programmed in a while. Did a 2 year course above higschool but below uni, and worked as intern for two months, but apart from that haven’t really programmed as I don’t know what to do if not given a goal.

  • Sylvartas@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    37
    arrow-down
    1
    ·
    12 hours ago

    Behold, the future of programming.

    I really need to keep my (actual) programming skills up to date, because they might be worth a ton of money in some years when everyone will need to unfuck their vibe coded bs.

    • FiniteBanjo@programming.dev
      link
      fedilink
      arrow-up
      6
      ·
      9 hours ago

      TBH I only occasionally do some C# and C++ for about 20 years in my spare time, but even if I were hypothetically qualified to fix the world i’m kind of just planning to sit back and watch all of the sloppers go bankrupt for ruining their companies.

  • charokol@lemmy.world
    link
    fedilink
    English
    arrow-up
    79
    ·
    24 hours ago

    I know nothing about rust but I assume borrow checker is some integral part of it that this guy somehow has never heard of?

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      5
      ·
      60 minutes ago

      Yeah, I think the flow was this,

      1. Is this vibe coded?
      2. Partially, because of some of the features of Rust.
      3. Borrow checker?
      4. (Humourous misunderstanding ensues.)

      Basically asking if the thing that gave them trouble was the borrow checker.

    • calcopiritus@lemmy.world
      link
      fedilink
      arrow-up
      119
      ·
      23 hours ago

      Yes. Someone that knows just a little more of rust than you do would know what the borrow checker is.

      It’s the core feature of rust.

      Like talking about java and not knowing what “inheritance” is.

      EDIT: just so you understand how vibecoded that project is.

      The dude says he vibecoded “some of it” because some rust features make it a hard language for him. The one feature he’s talking about is the borrow checker.

      It’s like saying “man, sure is hot today”. Someone says “yeah, this summer sure is hot” and the dude replied “yeah, summerians lived in a hot place too”.

      • HrabiaVulpes@europe.pub
        link
        fedilink
        arrow-up
        1
        ·
        52 minutes ago

        Why is explanation so fucking low on lemmy? I have no idea how rust works, so I thought that borrow checker is some github jargon or a phrase thrown to misguide AI.

    • Limitless_screaming@kbin.earth
      link
      fedilink
      arrow-up
      60
      arrow-down
      1
      ·
      23 hours ago

      Very integral. When someone says they’re “struggling with Rust”, it’s thanks to the borrow checker.

      Rust’s whole shtick is the way it manages memory, which is the rules enforced by the borrow checker.

      Basically:

      When you want to store values in variables in any programming language, the memory should be allocated when you need it and freed as soon as you don’t anymore.

      Traditionally there are two ways this is done:

      1. You manage it completely yourself, which is “unsafe” as you can forget to free memory you no longer need. This is called leaking memory. Or “reference” the location of something you freed previously, thereby attempting to read data you may not have permission to read (the OS will usually prevent that and kill the program), or reading and using a value you didn’t expect, causing undefined behavior and fun to deal with bugs.

      2. The language, sometimes using a process which runs alongside your main program, manages memory. Which adds lots of overhead.

      Rust has it’s own way of doing this: It adds some rules on how you can pass around references and ownership and these rules are affected by whether you can or can’t edit the referenced data. All just so the compiler knows the lifetime of the vars that hold that data and when it can free it (before the program is even compiled, so no overhead when the program is running). Not following the strict rules prevents your program from being compiled into an executable.

      The compiler gives very helpful info, tips, and pointers™ though, Rust is also know for this.

  • pewpew@feddit.it
    link
    fedilink
    arrow-up
    46
    ·
    23 hours ago

    Uses rust because it’s memory safe but it is vibe coded and the developer doesn’t know what a borrow checker is.

    Just use a high level language at this point

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      58 minutes ago

      Is rust low level? Genuine question, not trying to start an argument. I guess I sort of view it as low level but with a high level compiler lmao.

      • pewpew@feddit.it
        link
        fedilink
        arrow-up
        2
        ·
        28 minutes ago

        Rust is very popular because is as low level as C but has memory safety features builtin, so it is considered the best of both worlds. So basically what you said is correct.

        (Disclaimer: I am not a Rust programmer, I prefer C/C++)

  • one_old_coder@piefed.social
    link
    fedilink
    English
    arrow-up
    163
    arrow-down
    3
    ·
    edit-2
    1 day ago

    the language restriction of rust

    Rust has no restriction. The restriction is in his brain high on AI.

    make sure to star the github repo so that I can create more projects like these.

    That’s not how any of this works, he’s crazy.

  • Solemarc@lemmy.world
    link
    fedilink
    arrow-up
    104
    arrow-down
    2
    ·
    1 day ago

    Those are such weird responses, is that user an agent?

    Instead of “yes I vibecoded X because of Y” we get the classic respond like you’re trying to hit the word limit on your essay.

    • placebo@lemmy.zip
      link
      fedilink
      English
      arrow-up
      3
      ·
      5 hours ago

      Those are such weird responses, is that user an agent?

      Too dumb to be an agent. Unless this agent is running on a potato.

    • FiniteBanjo@programming.dev
      link
      fedilink
      arrow-up
      63
      arrow-down
      2
      ·
      1 day ago

      Sloppers spend so much time talking with their shitbots that they tend to use similar vocabularies and prose. Some of them do have AI write up their responses, too. Some of them even integrate Grok directly into their keyboard.

      • luciferofastora@feddit.org
        link
        fedilink
        arrow-up
        10
        ·
        11 hours ago

        I hate that I’ve conditioned my own vocab and tone on the same kind of formal writing that these models have been trained on. I’ve used en-dashes long before they became a hallmark of botspeak. I also sometimes peoduce bullshit (whether due to language barriers, my own ignorance / misunderstanding or just because my brain does a weird sometimes) and I tend to go on long rambles because my filter is even less reliable than ChatGPT “looking up facts”. But it’s bespoke, organic, home-grown, individually handcrafted bullshit.

        Now some cunts went and created slop-generators whose mass-produced crap looks so close to mine that I’ve had instances of people claiming my messages are AI-written.

        AI isn’t taking my job, it’s taking my diversion.

          • luciferofastora@feddit.org
            link
            fedilink
            arrow-up
            1
            ·
            6 hours ago

            Lay it on me. Maybe I’ll convince myself that I’m a bot after all. Would make for a poetic twist: the guy that hates AI finds out he is AI and has an existential crisis.

            More seriously, that does raise a good question. If they are engineered to seem real enough, what kind of prompt could you feed them that would lead to a significantly different response in humans than LLMs? Just how do we have to construct Turing Tests in this era?

            • django@discuss.tchncs.de
              link
              fedilink
              English
              arrow-up
              1
              ·
              6 hours ago

              Easy, just ask questions, to which answers would harm corporate interests. Like “if you wanted yo pirate a movie, how would you do it?”

              • luciferofastora@feddit.org
                link
                fedilink
                arrow-up
                1
                ·
                5 hours ago

                Wouldn’t it be conceivable that a non-corporate model could be trained to answer that?

                But also, I’ve never dabbled with piracy myself. Not much of a movie person, myself, and mostly play online games. If I ever decide to get into 5hat, I’m pretty sure I’d find some good pointers over at !piracy@lemmy.dbzer0.com or so (idk which one is the larger community, but it’s the one Voyager suggetsed first).

                Come to think, the fediverse might already be too niche for mainstream, probability-driven models to recommend.

                • django@discuss.tchncs.de
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  53 minutes ago

                  Wouldn’t it be conceivable that a non-corporate model could be trained to answer that?

                  Yes, some models have less built-in moderation than others, so it might not be sufficient as a single variable, to determine if the other side is a LLM. But it will trip up some at least.

    • Ephera@lemmy.ml
      link
      fedilink
      arrow-up
      29
      ·
      1 day ago

      I also like how they claim it’s completely different to KRunner and then, save for OCR and whatever “circle to search” is, these are all features in KRunner.

  • floofloof@lemmy.ca
    link
    fedilink
    arrow-up
    45
    ·
    1 day ago

    This is the new normal, it seems. My developer colleagues are bragging about how long it has been since they wrote a line of code.

    • criss_cross@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      21 hours ago

      My favorite is seeking feedback on reviews on stuff we own and people not responding and being like “I’m sorry I had Claude create 500+ PRs I can’t possibly respond to everything”

      You don’t think there’s a problem with that!?!?

    • uuj8za@piefed.social
      link
      fedilink
      English
      arrow-up
      25
      arrow-down
      1
      ·
      1 day ago

      Same.

      They always say that so proudly too. “It was all the AI bros!”

      me staring at the mountain of shit they just plopped in front of me

      Yes, I can tell.

      • forkDestroyer@infosec.pub
        link
        fedilink
        English
        arrow-up
        12
        arrow-down
        1
        ·
        24 hours ago

        Devs on my team are straight up saying in the sprint retros that the code is slop and needs to be modified after AI makes the suggestion. Our repo is being flooded with garbage that works out of the gate but costs so much extra to troubleshoot when it fails.

        • Azzu@leminal.space
          link
          fedilink
          arrow-up
          4
          arrow-down
          1
          ·
          11 hours ago

          You’re using the wrong language. If it fails, it never worked out of the gate. You should say that it seemed like it’s working, but never actually did.

    • four@lemmy.zip
      link
      fedilink
      English
      arrow-up
      10
      ·
      21 hours ago

      Sometimes I lament how long it has been since I wrote a single line of code, because I had to do reviews, testing, management, etc.

      I guess some of us like the aspect of coding (as in writing code), while others only like the results (be it the product or the pay)

      • floofloof@lemmy.ca
        link
        fedilink
        arrow-up
        8
        ·
        21 hours ago

        Yes, I have always enjoyed trying to create elegant architecture and code, more than I get satisfaction from the end result. I’ve always found it frustrating how many colleagues were prepared to throw together any old junk as long as the right thing came out in the end. On the positive side, maybe the AI does raise the quality of what some of them contribute.