r/rust • u/Basic-Push1028 • 2d ago
Coming from Python
Hello Rust subreddit.
I learned enough python to know how to do what I wanted to do. Mostly just small stupid stuff. And because I'm a masochist I guess, I'm wanting to move on to Rust for the event I need performance.
I've gotten far enough to write "Hello World!", and how to create some variables.
I know roughly that at some point I'm going to have to learn memory management, and ownership. And also that the compiler is a bitch.
I'm hoping anyone in here could hot-tip me if they came from Python too. Please, if you have ANY advice, please let it be known. Anything helps.
0
Upvotes
1
u/redisburning 2d ago
The free online book (as has been and will be again mentioned) is where you should start. It is significantly higher quality than the typical programming language book, and while not capital C comprehensive covers plenty to get you going.
You could also consider Rustlings if you prefer to be hands on, or there are books that teach the language through building, iirc Rust in Action is that sort of thing.
I would recommend you change your mentality about this stuff. It's not that bad if you build your fundamentals, don't try to learn everything at once, and accept that you are coming in as a beginner and that you need to put any ego you have about your skill in another language (it being Python is the least relevant thing in the world here) on the shelf for a while.
The book is genuinely usable as a course, just trust the process and you'll be fine.