r/learnprogramming • u/Organic-Sell-7034 • 19d ago
How to learn Rust properly?
Hello guys, I am currently starting out to learn Rust, but honestly its been very confusing for me, and I can't seem to find an universal place that teaches everything Rust offers in detail. My ultimate goal is to learn Rust for OS development, so any tips?
13
Upvotes
7
u/Chad_Frost 19d ago
"The Rust programming language" published by no starch press is usually the go to book for learning Rust, and it's available for free online if you don't want to buy a physical version:
https://doc.rust-lang.org/stable/book/
4
u/lfdfq 19d ago
It's a common error for beginners to look for the 'one right place' to learn from. The truth is, that there is no such thing. You will need lots of resources, ranging from official Rust documentation at https://rust-lang.org/learn/ to the thouands of tutorials, videos, blog posts, text books on a range of topics from Rust-specific things to generic programming or operating system concepts. Expect to mix-and-match lots of these resources, with most learning happening from your own trial-and-error attempts at programming things in Rust.
3
u/unwashed_but_washed 19d ago
Can you be more clear as to what you mean by OS development?
What level of prior programming experience do you have?
If you have moderate-high programming experience in other languages, then the rust book is quite helpful.
there was also a let's implement a linked list in rust at various levels of complexity blogpost somewhere. That one was relatively useful as to getting to know the language for me when I was picking it up.
It really highly depends on prior knowledge though, as well as your goals.
2
u/mayankkaizen 19d ago
It is not about Rust per se but about any language. Just start learning. You'll be confused and you will not understand everything but this won't be tutorial fault.
With time, you'll get familiar with the terminology and your subconscious mind will keep processing all the stuff you have been reading. After a point, everything will fall in place. Suddenly you'll understand, at least on basic level,, every book or tutorial.
Just keep consuming.
2
u/edwbuck 19d ago
You start off by learning it improperly, and then improving.
1
u/Flame77ofc 19d ago
doing exercises constantly
1
u/AdreKiseque 19d ago
The Book
You can also check out Rustlings and Rust By Example.
0
u/kleptican 19d ago
If you want to learn it for fun and for your own growth, then ignore what I’m about to say and enjoy yourself on your journey. But if you want to do it for a job, I can’t believe I’m saying this, but get used to prompting AI to build and spend time reviewing and having it explain. I say that because if you find a job doing it, 99.9% you will have to use AI on your job so companies will be more willing to hire.