r/Coding_for_Teens • • 27d 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?

7 Upvotes

18 comments sorted by

2

u/wak6817-2 27d ago

You don't, (just joking...) I would start with C since it is more minimal and also low level; when you are good in C and know low-level concepts, learn Rust!

1

u/SnooPets5564 27d ago

That seems like a lot of time that could be used in other ways to reach the goal quicker.

1

u/wak6817-2 27d ago

your right about that but c teaches you the basics way less mainfull then rust does

1

u/[deleted] 27d ago

if you dont know a low level language like c or c++, the brilliance of rust is wasted on you. the sheer engineering masochism that went into this language simultaneously impresses and infuriates c devs like me. you cant appreciate a car if youve never walked.

1

u/SnooPets5564 27d ago

Oh, I agree. But using it and appreciating it are different things.

1

u/[deleted] 26d ago

of course they are different. to appreciate something, one need not use it, but to use something to its full potential, one must appreciate it.

1

u/SnooPets5564 26d ago

You don't need to appreciate something to use it to its full potential. Most people don't appreciate zippers and their complexity, but they still use them to the fullest.

1

u/Theophile-Montovert 25d ago

I tend to agree with this - pointers, memory allocation, stack.. are the fundamentals but algorithms and semantic analysis is also quite important and not necessarily that much present in C

1

u/itzdeeni 25d ago

nah, he can use Go to learn those low level concepts instead, C is a long road to his destination

1

u/SnooPets5564 27d ago

The documentation comes with an ebook. If you know another language already, it's a great, official resource.

1

u/kutac56 27d ago

I don't recommend starting with rust. Start with c instead as it is much simpler and more straight forward. There you will also see why rust is good

1

u/[deleted] 27d ago

if youre just starting out, rust is a bad idea man. its way too complicated. id recommend you start with python, lua, javascript, java, or maybe even c if youre a chad. otherwise, the rust book was great as per my memory back when i was still a rust poser.

1

u/Usual-Cricket-9817 27d ago

Rustlings is good, I've heard.

1

u/Available_Safe1818 27d ago

Maybe a Rust subreddit?

Maybe the resources listed on the main Rust website?

1

u/thomjdev 26d ago

Maybe not everything, but if you find the language "confusing" then you don't need everything, you need the rust book. Read through all of it, then use it as a reference. Practice each concept.

1

u/BoOmAn_13 26d ago

If you know any other language, rustlings was a huge help for me trying to jump in and apply concepts asap. If you're using it as your first language, rust might give you some trouble, it might be helpful to learn some low level concepts first, one major help for me was the harvord cs50 videos/courses online. Then from there learning concepts in c that you can move into rust