Anyone here have any tips on learning the Rust programming language. I found out about it yesterday and started learning bits and pieces about it, but I’m looking to accelerate my learning speed. Any tips and or suggestions would be greatly appreciated.
When it comes to learning programming, I’ve realized that spending a long time on programming language theory is one of the biggest wastes of time.
Don’t spend more than a day studying a programming language. Just spend about two hours on the basics that day, looking up the core syntax you need, and then immediately start a project. I’m saying this strongly: don’t spend more than two days studying a programming language.
This applies to Rust as well. Skim the basic syntax for roughly two hours, on the same day, and then jump straight into a small project.
When you run into problems while building something, look things up as needed and fix them as you go. In my experience, that has been the fastest way to improve.
To be honest, I still don’t really know how to apply memory techniques to learning programming languages.
I’m just a beginner who only recently started learning them myself.
So please just treat what I’ve written here as a few small tips based on what I’ve realized while studying programming, and use them as a reference.
The Rust Book is good.
Also Rust in Action.
If you prefer to see someone walk through it in a video and explain the concepts well, this Udemy course is good.
I would suggest, learn the absolute minimum you need, and then start working on a project (without following any tutorial or guide).
So learn the syntax of the basics first. The rust docs are great, give those a read. Chat with AI about certain concepts that confuse you. Once you have that foundation, I would suggest building CLI tic tac toe as a good first project, as it requires combined use of several basic concepts. You’ll make syntax errors and encounter specific bugs along the way. That process of making mistakes will really speed up the process of becoming comfortable with the new language.
Normally I’d suggest just building things, but Rust is one of those languages that, like Haskell or APL, requires a little study to avoid getting completely stuck.
I tried writing an arithmetic compressor and got stuck on a trait / borrow-checking thing and never came back. It didn’t help that my reference was “Learning Rust with Too Many Linked Lists”, which soon lost me talking about Rc<Box<dyn ...>> type shenanigans.
Go through the Rust book and after each chapter, ask yourself “what’s the next simplest thing I can build with what I’ve just learned?”, then try it before moving to the next chapter. Don’t worry about them being useful, and if you get stuck, just leave it, move on to the next chapter and come back later.