• KindaABigDyl@programming.dev
    link
    fedilink
    arrow-up
    7
    arrow-down
    2
    ·
    edit-2
    1 year ago

    Pick Rust, learn Bevy, and make a Flappy Bird clone. Is it the best way? Who cares just get started.

    You could mull over and discuss a million different ways to get started. The most important thing is to be decisive and just do

      • KindaABigDyl@programming.dev
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Rust is renowned for being hard and frustrating to onboard onto. I don’t think this is a wise suggestion.

        You missed the point

          • KindaABigDyl@programming.dev
            link
            fedilink
            arrow-up
            4
            ·
            edit-2
            1 year ago

            What I said:

            You could mull over and discuss a million different ways to get started. The most important thing is to be decisive and just do

            We could go on for hours debating what the best beginner language, environment, project, etc is, but the important thing is that they pick something and do it.

            I gave them a specific thing to get started on. That’s the important thing.

            Learning programming is gonna be hard. They’re gonna face issues no matter what, so like I said:

            Is it the best way? Who cares just get started

            That’s why I said you missed the point. I don’t think you read my reply at all and just stopped at the first word lol

            • IGuessThisIsForNSFW@yiffit.net
              link
              fedilink
              arrow-up
              3
              ·
              1 year ago

              I get what you’re saying, and jumping in and getting started is exactly what OP needs to do. However, if they read your comment and take your advise, they might be inclined to take ALL your advice and starting them with a difficult language when they know nothing is probably a bad idea. It’s like you have embedded bad advise inside your good advise, and someone who knows nothing won’t be able to see that. If OP’s still reading these comments, just replace rust with C# or HTML/CSS depending on what you’re into and then reread KindaABigDyl’s first comment.

      • Michael Murphy (S76)@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        This is very over-exaggerated. A lot of people started with C or C++ as their first language. Both of which are significantly harder than learning Rust. In fact, I had a much easier time learning Rust than I had with Python and Java because the Rust compiler’s always had great error messages and documentation. Which then significantly boosted my ability to write C and C++. If, in an alternate reality, I had started learning programming today, I would recommend to my alternate self to start with Rust. Especially now that it’s gotten so much easier than when I had learned Rust when it was still in alpha. Error messages have gotten very detailed lately, to the point where many of them show the precise code to write to fix the error. The compiler’s also much less strict with borrowing and lifetimes.

        • lysdexic@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          This is very over-exaggerated. A lot of people started with C or C++ as their first language.

          That took place over two decades ago. There were no better alternatives back then. Times have changed.

          Both of which are significantly harder than learning Rust.

          This is simply not true. It’s far simpler and less frustrating to work on either C or C++ for the simple reason that you can shoot yourself in the foot anywhere you’d like. In Rust, newbies have to alternative to endure the compiler enforcing its safety constraints anywhere they’d like. Rust is also a far more complex and extensive language that enforces memory safety rules that can and very often are very frustrating to handle by those who don’t have a firm grasp on them.

          • MajorHavoc@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            1 year ago

            Agreed. I found learning C decades ago was a pain in the ass. And I found learning Rust last year was a huge pain in the ass.

          • Michael Murphy (S76)@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            edit-2
            1 year ago

            You’re not making the strong case that you think you are. Quite the opposite. The ease of “shooting yourself in the foot” is precisely what makes it so difficult to learn. Segmentation faults and random memory corruption make it incredibly hard to get started with programming. The compiler typically providing no help at all for diagnosing where the memory handling flaws are. You need to learn how to use a debugger to get anywhere with fixing them. Many people give up when it gets too difficult to diagnose them

            Rust’s constraints are very clear and concise in comparison, with a helpful compiler that will teach you how to handle memory correctly. Cargo API documentation is also extensive in comparison to typical C or C++ documentation. I believe you’re mistakenly assuming it’s more difficult to work with than it really is. For example, imagine telling someone that pattern matching in Rust is more difficult than constructing unions and casting pointers in C. I’ve worked with a number of people over the years that had little experience in programming outside Rust. It’s not that difficult.

            • lysdexic@programming.dev
              link
              fedilink
              English
              arrow-up
              1
              arrow-down
              1
              ·
              edit-2
              1 year ago

              You’re not making the strong case that you think you are. Quite the opposite. The ease of “shooting yourself in the foot” is precisely what makes it so difficult to learn. Segmentation faults and random memory corruption make it incredibly hard to get started with programming.

              That’s not the case, though. Some C and C++ compilers are already resilient and flexible enough to not get C and C++ to blow up in your face when you’re doing unmentionable things to memory access. Some memory safety issues are only noticeable when running profilers and memory safety tools.

              Keep in mind you are talking about someone taking their first steps in writing software. They are struggling to get stuff to work, and throwing curve balls at them is not going to help them get on their feet.

              Also, I did not advocated for C or C++ as better options. My point is that Rust is an awful suggestion as a first language, which even the Rust community states. It also speaks volumes to Rust’s unsuitability as a beginner programming language if the best attempt to refute that fact is to try to come up with worst alternatives that in the end aren’t even worse at all.

              Rust’s constraints are very clear and concise in comparison (…)

              Irrelevant. The point is that Rust enforces constraints that other programming languages don’t. If anyone is taking their first steps, not having to deal with them leads to a far more productive and enjoyable experience. It’s absurd to talk about memory-safety and performance when the target audience doesn’t even understand what memory is.

              • Michael Murphy (S76)@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                ·
                edit-2
                1 year ago

                The Rust community is a very diverse group of people with many different opinions. It is not a universal truth that the Rust community believes Rust to be an awful first language. I’ve known plenty of people who started their careers with Rust. I started my career with Rust, too. The complaint with difficulty adapting to the borrow checker has been irrelevant since the 2021 edition of Rust. The borrow checker has become smarter about rearranging borrows and automatically tagging lifetimes in most cases. The remaining constraints that the compiler enforces are also hard requirements to learn when developing software in any other language. The same practices equally apply to all software. For example, mutating an array while iterating it in Python or JavaScript will lead to unexpected behavior. Python and JavaScript’s lack of a proper type system causes a lot of software to explode at runtime when you think inputs are always X but suddenly in one case it happens to be Y.