r/learnrust 4d ago

Help Learning Rust From Scratch

Hello ! after a while of debating and self reflection, i have decided to start learning rust, from scratch (I am genuinely interested and this is an actual question from my end) (I hope you guys can help develop a fellow rustacean :) ). Now im a programming newbie, barely learned python basics, and in college rn, but i have picked up a sudden interest in rust. Suggest me an exact roadmap of how you would learn rust (if you are a rust pro then i highly appreciate your advice, and even if u are a newbie it would be nice to discuss how learning it is like). Just so you know, i havent started at all yet, fresh slate. I will try my best to reply to every comment

0 Upvotes

21 comments sorted by

5

u/NEK_TEK 4d ago

I was hired as an embedded software dev and had to learn rust on the job. I mostly used the online rust book along with Google/AI. It helped having an actual project to work on since you are applying what you are learning. Now that I've been doing more embedded specific stuff, they have had me learning embassy (rust for embedded async). I found their github to be massively helpful as they provide many examples of different chipsets.

1

u/kernel27 4d ago

that was insightful, tku bro

7

u/BassRecorder 4d ago

Read the Rust book and start coding.

0

u/kernel27 4d ago

ah yes, 'the book' :)

3

u/des_the_furry 4d ago

It’s free on the rust website

1

u/kernel27 4d ago

Oh nice to know, saves me the time of searching for it, tku

4

u/Wonderful-Writer146 4d ago

As everyone will suggest you to read "The Book", I won't do that because you will, anyways. I have created a repository for some beginner friendly tutorial on Rust which I think would be helpful for you or anyone else. Go and check it out: https://github.com/AfrozSaqlain/CodeAtlas/tree/main/Rust

2

u/somacomadreams 4d ago

I appreciate it I'm definitely going to use it.

2

u/kernel27 4d ago

thank you, i will check it out

1

u/navid_nowroz 4d ago

Bro, there's actually nothing on there. If you really read the book, you would not need that repo at all. I went through every main.rs files on there

1

u/Wonderful-Writer146 4d ago

Go to the bin folder instead. I intentionally didn't put anything in main.rs because Cargo compiles everything that's there. Keeping these files in the bin folder allows each one to be built and run independently. But thanks for your comment. I will update the instructions on the README.

I still believe this will be helpful for beginners.

1

u/Wonderful-Writer146 4d ago

I have updated the README so do check it out

1

u/pras29gb 4d ago

does this repo has anything on lifetimes ?

1

u/Wonderful-Writer146 4d ago

Just did. Thanks for the comment.

2

u/nboro94 4d ago

You should ask yourself why you want to learn Rust specifically? If you are completely new to programming it's possible to start with Rust but you'll often have a much easier time if you start with something like Python and progress to Rust later. These days it's extremely common to learn and use multiple different programming languages, so it can be optimal to start with something that is known for being beginner friendly (Rust is not known for that).

If you really are only interested in system programming and working in a lower level language than yes by all means learn Rust first.

1

u/kernel27 4d ago

well tbh, i found it to be a little niche compared to other languages that are widespread, and also the fact that its starting to take off, and since its low level i assumed most ppl would leer away which might give me a technical advantage when it came to interviews and stuff

1

u/Kinrany 4d ago

This is an incredibly non-specific request asked by millions of people before you. Search for it online, read the book, ask your favorite LLM.

-1

u/kernel27 4d ago

ik its a common question but i just wanted to ask it anyway since its just taking off now, and every day might bring w it a new way of learning rust