On the one side I really like c and c++ because they’re fun and have great performance; they don’t feel like your fighting the language and let me feel sort of creative in the way I do things(compared with something like Rust or Swift).

On the other hand, when weighing one’s feelings against the common good, I guess it’s not really a contest. Plus I suspect a lot of my annoyance with languages like rust stems from not being as familiar with the paradigm. What do you all think?

  • 520@kbin.social
    link
    fedilink
    arrow-up
    19
    arrow-down
    1
    ·
    edit-2
    9 months ago

    The most manual way is what C does, which is requiring the programmer to check memory safety by themselves.😛

    The difference is, Rust will throw a tantrum if you do things in an unsafe way. C/C++ won’t even check. It’ll just chug along.

    Rust is really not that harder than Java or Python.

    As someone who’s done all three, the fuck it isn’t.

    If you are familiar with C/C++ best practices to any operational level, those things will translate over to Rust quite nicely. If not, that learning curve is going to be fucking ridiculous with all the new concepts you have to juggle that you just don’t with either Java or Python.

    • calcopiritus@lemmy.world
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      9 months ago

      I haven’t been able to compile a single C/C++ program (even bought a C++ book!) Learned to write normal programs in rust (even with simple lifetime annotations!) In 1-2 months. I just knew python and the basic knowledge of 1st year university.

      It’s not that hard.

      Just reading through the rust book (a week, maybe? I don’t remember how much time it took) will make you able to confidently write a simple CLI program.

      • 520@kbin.social
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        9 months ago

        Just reading through the rust book (a week, maybe? I don’t remember how much time it took) will make you able to confidently write a simple CLI program.

        You can do the same in Java or especially Python from zero much, much quicker.

        Also you can learn to go beyond simple CLI programs in those languages much quicker, because you don’t have to worry about memory management.

        • calcopiritus@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          8 months ago

          I’m not saying that java or python are harder, of course they aren’t. I’m just saying that it’s not as hard as people seem to think. What is 1 week of commitment to learn a new language? Of course it depends on what there is to offer.

          I think the benefits of rust far outweigh it’s drawbacks (including the learning time).