“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?

    • 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.

  • 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.

    • … 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.

      Sometimes you even have to deal with having mere mortals on your team!

      • It is a way to go but there are still cons there. Guaranteeing memory safety isn’t free. You have to pay for it somewhere, either at compilation time, like Rust, or during runtime like in Go. Both are solid approaches but GC will cause problems in cases where the extra runtime overhead is not acceptable.

  • mokus ( mokus@lemmy.blahaj.zone ) 
    link
    fedilink
    arrow-up
    32
    ·
    1 year 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++”.

  • masterspace ( masterspace@lemmy.ca ) 
    link
    fedilink
    English
    arrow-up
    28
    ·
    1 year 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.

  • B-TR3E ( b_tr3e@feddit.org ) 
    link
    fedilink
    arrow-up
    26
    ·
    1 year 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.

    • lad ( sukhmel@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago

      If we measure only by the amount of mistakes, there would be much more skilled C developers. Take my pristine skills for example, I’ve made zero mistakes writing all of my 3 lines of C code over years and years, zero mistakes

  • While I do totally see the advantages of rust and agree skill is not a solution given people make mistakes…I do agree a lot of the very vocal rust advocates do act almost religious and it is an annoying turn off.

  • CanadaPlus ( CanadaPlus@lemmy.sdf.org ) 
    link
    fedilink
    arrow-up
    18
    ·
    edit-2
    1 year ago

    I’d guess it’s Rust fan’s genuine belief that they have something revolutionary.

    “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.

    If you’re that much of a galaxybrain, you should be writing everything directly in opcodes. In reality, nobody is, and we invented languages to help us perform an activity the human brain is very poorly suited to.

    This attitude also means that OP stares at their own obvious bugs on a screen all day and then decides they’re great, which is level of detachment from reality frightening to me.

  • The really annoying part is all the people saying that you shouldn’t like Rust because actually it’s not magically bug free. Yeah, no shit. No one who touched Rust claims it lets you write bug free code. People like Rust because it’s modern, fast, has great tooling, great documentation and really nice features like Traits and Algebraic data types. Memory and thread safety is just a bonus.

  • JackbyDev ( JackbyDev@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 year 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.

  • Omega (she/her) ( purplerabbit@beehaw.org ) 
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    I mean… they do kinda have a point on the last part. I’m no programmer or coder. I can’t code for shit. I don’t know a lot about development. And even I have the feeling that Rust people, they’re kinda like NixOS people a while back, they never shut the fuck up about it. :3

    They’re definitely enthusiastic, I’ll give them that. But so many projects are sold solely on the fact that they are made with Rust, even though it means absolutely nothing to most users.

    I remember when System76 announced that they were making a new desktop environment and the only thing they basically said about it back then was that it was made with Rust and it felt like my corner of the internet lost their mind about it like they had announced the second coming of Christ or something.