Hi, welcome to my channel! In this video, I want to share what I’ve learned after attempting to learn Rust six times.
Over the past seven years, I’ve tried learning Rust six times and gave up multiple times. However, this time, I feel like my learning is finally on the right track.
Identify your motivation for learning Rust. Are you learning it to explore a new programming language, pursue a personal interest, satisfy curiosity, or enhance the performance of an existing application? When I first started learning Rust, it was because I felt curious about its unique features like memory safety and ownership, so I decided to give it a try.
Focus on Rust’s core concepts: ownership, lifetimes, generics, and traits. I shouldn’t spend too much time on the general things in every programming language. But only the unique and core ideas of Rust.
Practice, practice, and practice more. Gain intuition through consistent practice. Looking back at my FAILED learning journey, I realized I gave up too early and didn’t practice enough. As the saying goes, "practice makes perfect." Without sufficient practice, it’s difficult to recognize patterns when programming in Rust. When you’re stuck, you can refer to the book or ask AI for help.
Try working on real-world projects. For example, you could build a calculator, a terminal app, an HTTP service using the Axum framework, or even a Redis server. When I build projects with Rust, I can truly appreciate its advantages. For instance, its error handling is far more elegant compared to Go, and I learned how to custom error handling, how to do TCP programming. Through this process, you’ll gain a better understanding of what Rust excels at and what challenges you might face when implementing certain features. And gives you feedback where you can learn more about.
Rewrite an existing app service with Rust. Since you already understand the logic and functionality of the existing tool, you only need to focus on how to implement those features using Rust.
Break down Rust programming into smaller, manageable parts and learn them one at a time. When I was learning, I wanted to progress quickly. After learning a new concept, I would immediately move on to the next topic without reflecting or practicing enough. I thought I understood it, but I didn’t.
Avoid trying to learn every detail. Instead, focus on mastering the fundamentals and unique core concepts first, and then apply them to real projects. There are too many details in Rust, and attempting to learn all of them at once can lead to frustration. I once tried to learn everything in detail, but before I could finish, I felt overwhelmed and gave up.
コメント