“Rust’s compiler prevents common bugs” So does skill. No offense to you, but, this trope is getting so tiresome. If you like the language then go ahead and use it. What is it with the rust crowd that they have to come acrosslike people trying to convert your religion at your front door?

  • smiletolerantly@awful.systems
    link
    fedilink
    arrow-up
    2
    ·
    5 months ago
    • if your skill is so great that you would never cause the kinds of bugs the rust compiler is designed to prevent, then it will never keep you from compiling, and therefore your complaint is unnecessary and you can happily use rust
    • if you do encounter these error messages, then you are apparently not skilled enough to not use rust, and should use rust

    In summary: use rust.

  • AllNewTypeFace@leminal.space
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    The human mind has limited capacity for things to pay attention to. If your attention is occupied with tiptoeing around the loaded guns scattered all over the floor, sooner or later you’ll slip and trip over one.

    Of course, you’re a virtuoso programmer, so you can pirouette balletically around the floorguns as you deliver brilliantly efficient code. Which is great, until you have an off day, or you get bored of coding, run off to join the circus as a professional knife-juggler and your codebase is inherited by someone of more conventional aptitude.

    Programming languages offering to keep track of some of the things programmers need to be aware of has been a boon for maintainability of code and, yes, security. Like type systems: there’s a reason we no longer write assembly language, squeezing multiple things into the bits of a register, unless we’re doing party tricks like demo coding or trying to push very limited systems to their limits.

  • masterspace@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    Skill issue takes are dumb as fuck. It’s just republican personal responsibility takes using different language.

    Intelligent people focus on producing systemically better outcomes.

  • hedge_lord@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    Unlike you babies I have Personal Responsibility and I write all of my code directly in assembly the way reagan intended. I don’t need guard rails and I’ve never had any issues with it because my Personal Responsibility keeps me safe

  • mokus@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    “Should I use rust or c++” is the wrong question IMO. The right question is “do I want the code I run, written by thousands or millions of randos, to be written in rust or c++”.

  • B-TR3E@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    The problem with these followers of rust is that they’re heathens, disbelievers and worshippers of the devil. Just like all of you heretics. There is just one programming language for the true believer and it is FORTRAN. The pure and true FORTRAN, that is, which is punched into cards of virgin paper, not the heresy created by the blasphemy of 99.

  • IrateAnteater@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    5 months ago

    At this point, I’ve seen far more people being almost violently anti-rust than I’ve seen people being weirdly enthusiastic about rust. If Rust people are Jehovah’s Witnesses, then a lot of the anti-Rust people are ISIS.

    • baguettefish@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      i think one factor (though definitely not all) of the dislike is the politics of the project, which are fairly inclusive and kind. some people can’t stomach that. another factor might be that the mere existence of rust implies that a lot of people are not the 100x rockstar developer they might aspire to be. maybe it’s also just a simple change = bad. though i have seen people who dislike rust also gravitate towards zig, and that also has some big differences. maybe it’s a hate towards mozilla? when i talk to people who hate rust they don’t articulate themselves well, so i have to speculate and i get nowhere. one thing i do hear about rust a lot is that it’s ugly, but I don’t really get that. i can’t personally fathom disdaining to use a tool simply because of looks, and i also don’t personally think rust is ugly.

      • Log in | Sign up@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        5 months ago

        I think a bunch of C programmers hate rust passionately because they always looked down their noses at principled languages for being slow.

        Now a principled language is beating them on both speed and safety and it’s as if the jocks lost a baseball game to the nerds who studied dynamics of solids and cut a series of little slots in their bats so that every time they hit the ball it went out of the park.

        So much hate for the clever win over the brute force.

        • PlexSheep@infosec.pub
          link
          fedilink
          arrow-up
          0
          ·
          5 months ago

          Rust is a tiny bit slower in benchmarks with similar implementations, since it has a few more runtime checks, but the difference is minor.

          • Log in | Sign up@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            5 months ago

            All depends what your trade offs are. “Milliseconds of run time versus months of debugging.” I know one team that were died in the wool C programmers but their baby had one too many security issues and their CTO said they had to reimplement it all in rust. One of them resigned but the others spent ages on it. They hated the borrow checker with a passion, almost as much as they hated the CTO, but after a bit they admitted it had some benefits and in the end they have a love/hate relationship with it. They hate the process still, but they love the result. The Milliseconds vs months quote is from my friend on that team. He said one subsystem had a seriously massive speed boost because they turned off the logging they used to do to recover from some infrequent intermittent bug that simply doesn’t happen any more. They’re proud of what they did.

    • It’s like the people complaining about SJWs and cancel culture. Sure, some people are annoying and use these things to harass others, but the vast majority are just normal people who care about certain things. But people on the other side, when they can’t provide a good argument against them, start to vilify the people themselves. It’s similar to how right wingers cry about decorum when they’re more likely to vote for rapists.

      I must admit that I had given into this anti-SJW hate at some point in my late teens, but I luckily realized how I was acting like a little bitch, hating on people I don’t even know just because they’re passionate about equality. The funny thing was, I still believed in their causes, but was pretty much brainwashed into believing that they’re hurting the cause by being vocal. It’s weird how dumb we often are.

  • boaratio@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    At my last job I worked in a code base written in C and it needed to be certified to MISRA level A, and even in a language with as many foot guns as C, it’s possible to write safe code. You just need to know what you’re doing. I know there are tons of Rust zealots out there claiming it’ll solve every last problem, but it turns out you just need to be careful.

  • JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 months ago

    I can sympathize with some people getting tired of “rewrite it in Rust”, especially when it’s suggested inappropriately. (Worst I saw was an issue opened on something, maybe a database, I don’t remember. Someone said they were a new programmer and wanted to help and only knew a little Rust and that if the project was rewritten in Rust they could help.) But… Rust’s compiler being able to do those things is actually super useful and amazing. This is like someone saying they don’t need static types because they know the language good enough to not misuse the dynamic types. This is like someone saying they don’t need C because they’re good at assembly.

    While it isn’t something as simple as Rust being strictly better than C/C++, it’s really silly to say that you being a good developer means you don’t need guardrails. Everybody makes mistakes all the time. You’re not perfect.