• Jerkface (any/all)@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 months ago

    I’ve learned dozens of languages over 40 years. Rust is one of the hardest I have tried to use for serious projects. It introduces completely new concepts that need to be deeply understood to be productive. It’s also one of the most convenient, well-tooled, and expressive languages I’ve used. But c’mon, as languages go, Rust is deep into BDSM territory.

    • TheTechnician27@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      5 months ago

      As someone who routinely works on a complicated C++ codebase, had to use C, Python, and Java all the time through school, has had to use absolute trash like JavaScript and PHP, and has dabbled in languages similar-ish to Rust like Go and Swift, Rust to me is simple to work with.

      The compiler is extremely helpful when I do something wrong, it has sensible conventions like immutability by default, Cargo is a streamlined build system, I’ve found the documentation easy to read, I actually prefer curly brace-delimited scopes to tabbed ones and explicit type declarations for readability, and in the obvious comparison to C/C++, Rust lacks extremely common memory footguns.

      Obviously compared to Python – with its mountain of syntax sugar and a library for everything – Rust is going to be more difficult. But for languages in general? Rust is not at all one of the harder ones I’ve learned or used.

      (Btw I hate Java; it’s the worst language I’ve ever used.)

      • Jerkface (any/all)@lemmy.ca
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        5 months ago

        How many times have you spent an entire day not moving forward on a project because you couldn’t figure out what the borrow checker was trying to tell you? Maybe you’re just a 10X developer. I feel quite qualified to inform you that for we mere mortals, Rust can very fairly be described as a relatively hard language.

        Rust has completely unique paradigms not expressed in any other language! Things that no one coming to Rust has prior experience with. If you cannot admit that makes it harder than some random language that just fucks with syntax, …dude