r/rust • u/Thick-Profile-1924 • 8d ago
Started Rust Journey Today
I'm an entry level backend developer who got fed up with python since it doesn't teach good fundamentals. Right now I'm quite excited about rust as I've heard about it much and also did research on it. My goal is to understand computer fundamnetals at low level and write better software and become a real engineer. Right now I'm not doing it for money since I'm a high schooler. And I'm quite excited about the learning curve and frustrations people face. Though my goal is not learning code but understanding the underlying systems and writing safe code. Tell me if my excitement will really vanish or not. I'll also like some advice.
10
u/Thelmholtz 8d ago
Look into r/learnrust for advice and stuff as you go on.
As for my part, my advice is to start with the book.. You can choose either Standard flavour or Brown, but either of them are a must read to get into the language.
4
u/sayboom 8d ago
Python is a great language and great tool for some tasks. I wouldn't abandon it. But look mostly at Architecture, how things work, because any language its just a tool
3
u/MxnunxM 8d ago edited 8d ago
If you want my advice, learn C and C++ as well if you want to learn how the hardware really works. C is very interesting because basically every popular programming language was inspired by C bit at the same time it's small and "simple", but, just like C++ it lets you write and compile very unsafe code, and they both have a "trust the developer" philosophy to have real low overhead and direct hardware access. The downside is that the compiler (or the compilerS I should say, since there are so many and it's a little confusing at first) isn't as clear as Rust's compiler. C++ is also very interesting because of its history and huge ecosystem, the language has multiple ways to do the same things because it stays backwards compatible with 1998 syntax while also adding new better ways to do stuff. The only downsides Rust has are the slow compilation time and the smaller ecosystem, but it's an amazing language nonetheless, and it has amazing Developer Experience. I hope I didn't confuse you with all this jargon. Just like I think Rust made C++ better, I think learning C++ will make you a better Rust developer, and vice versa.
Oh and regarding on how to learn, I would suggest the Rust Programming Language Book (better yet, the interactive version of the book made by Brown University) for Rust, learncpp.com for C++, and Beech's Guide to C Programming for C.
I recommend to learn the basics in all 3, then try to build something you think of and learn "on demand" (if you need something or don't know how to do something, look it up on these docs and learn it). I wouldn't suggest trying to finish all the documentations just to "feel productive". You can also watch some tutorials on YouTube by bro code for example if you're confused by the C++ compiler or IDE setups.
I suggest Zed Code Editor for all 3 languages honestly, even though CLion is better for large C/C++ repositories because of its high level indexing and refactoring
Good luck :)
4
u/cmdjunkie 8d ago
Don't look at it like you're "learning rust". Pick something you want to build and learn how to program it in rust. The excitement should be about the journey (the process of learning and programming) en route to the destination (the final, working, functioning, compiled program). And here's the rub: once you've completed your first project in Rust, you will not have learned Rust, but you have have learned how to program (if you didn't learn how to program before). You will have programmed something using Rust.
I've been coding Python since 1999, and I still haven't "learned Python", but I know how to use it.
2
u/neerajprime 8d ago
2
u/La-ze 8d ago
I would suggest C to learn fundamentals over Rust. Rust is amazing but it does abstract things away from you like memory management. C code is very close to the underlying ASM and since it's manually managed memory, you'll learn the core fundamentals.
1
u/raflsspace 8d ago
Honestly your excitement won't vanish if you look at each language by the problem it's trying to solve.
I started out with java and also spent a lot of time working with go, and only used python when i needed a specific ecosystem for a problem. Java and go made total sense for getting things shipped with decent structure, and python is great when the tooling around a specific domain is already mature. then when I finally picked up rust, it suddenly clicked why it exists in the first place, because you start seeing all the memory and concurrency headaches the older abstractions were hiding from you.
That said, rust really is pretty cool once things start clicking, the level of control (measurable) and confidence you get when something finally compiles is hard to beat. You didn't waste time with python at all, it actually gives you the context to appreciate why rust works the way it does. Just enjoy the struggle and focus on the problems you're trying to solve, every language just adds another way of thinking.
1
u/every1sg12themovies 4d ago
if i were you, i would grab a book about computer fundamentals. it's quicker way than trial and error and learning just enough to get by but not really understanding how it fir in larger schema of things.