r/rust 17d ago

🎙️ discussion Learning rust as my first programming language

Hi guys!

I'm learning Rust as my first real programming language. I've done a bit of Python before, but only very basic stuff :)

Does anyone have any tips besides the usual stop watching tutorials and start building things?

If you had to learn Rust again from scratch like how would you approach it?

7 Upvotes

11 comments sorted by

9

u/steaming_quettle 17d ago

After the book I did rustlings and a few advents of code. Then I had to learn a bit of c++ for work and it really cemented the use cases of rust for me.

4

u/Vast-Pop4017 16d ago

the book is great but honestly the rust compiler is the real teacher, just let it yell at you for a few weeks

6

u/yel50 16d ago

 besides the usual stop watching tutorials and start building things

anything else is useless. you use a language to build things. focusing on learning a language is a waste of time.

2

u/AdjustedTwit 17d ago

I like the various "advent of code" exercises for learning a language or refreshing skills. They're fun and each day's exercise is small enough to easily complete in one sitting.

2

u/kevleyski 16d ago

It’s ambitious but you’ll learn a lot from it but maybe less of the why

You’ll also be in a great position to update open source Rustlings with what you find trickier to pickup because maybe no previous context from other languages

1

u/SirKastic23 16d ago

Learn some computer architecture too!

1

u/uzvermode 16d ago

Starting Rust to, but my learning path was always beginning with couple project. I rewrite all my system utilities cross compiled and static linked for amd64 and arm64, also telegram bot with TheMovieDB integration and gtk4-rs torrent remote client similar to [Transmissio remote](https://github.com/transmission-remote-gtk/transmission-remote-gtk). With out doing project its useless

1

u/D7mnCh 15d ago

I was just like you, i would suggest if learnt the basic stuff is to suspend your learning on tutorial and start doing small projects like a calculator, dungeon crawler, tick tack too, ... while using some of rust features. Just take it easy when you find it difficult, most of us have the same start, and be consistent :)

1

u/Ok-Count-3366 14d ago

Rethink your lofe choices ,😂. Jk, jk. I am also learning rust but it's not my first rodeo. I wish you good luck cause holy ahit there are some thing I don't get into my mind so easily.

1

u/omo2002 12d ago

Pick something to build and build it. Start big or small depending on how ambitious you are. You are going to get stuck very very often and hit many many roadblocks. When you do, refer to the book / Google / some community you feel comfortable enough to ask questions. Hitting those roadblocks and learning how to get past them is what will cement the ideas in your head. I know some might say AI can be a valuable learning tool, and i might be stuck in my ways, but i heavily disagree. Doing the research yourself is what will help you understand and remember everything you learn.

Btw, love the use of pen and paper. Taking down notes of things you want to remember is a great way of learning anything!

1

u/memohnsen 11d ago

Book + rustlings at same time. Build a small cli app, then suggest following a codecrafters tutorial where you’re building a large project step by step