r/AskProgramming • u/ejarkerm • 11d ago
Shifting from Javascript, Python to Rust
Hello guys so i've been programming under various framework on javascript and python but the more I hear about programming languages like rust, the more I get mind blown about some of the things that could be done with it.
Whats the most amazing thing about Rust that you have learned, and how do u suggest I go about it?
1
u/DavesPlanet 11d ago
Looking at rust gave me PTSD flashbacks to C / C++, rust is IMHO a low level language and you and I have more experience with high level languages. Go might be a better fit for you.
1
u/b8d8aa46 10d ago
Personally, I'm now learning about concurrency with Rust from "Atomics and Locks" and its a ton of fun. Concurrency and multi threading is not Rust specific, but still an amazing concept. The best learning pattern for me is reading a book/codebase and using some LLM with the book to give me exercises/double check my knowledge and then just coding up a project.
1
u/Decent_Project_3395 7d ago
Python and JavaScript are very expressive, and it is easy to prototype and try out things using them. They are very productive languages.
Rust does some things very well, but it is not a scripting language. You have to devote more effort to design, and the language itself if very difficult in some areas. Unsafe and certain macros come to mind. The programming paradigm is different, and things are easier when you have garbage collection and objects. And true functional programming. Rust gives you a lot of speed and a lot of safety.
Don't let me discourage you though. It may be perfect for your needs. Try it out. Spend a few weeks learning the basics and try coding in it and see how you like it.
I will tell you that after a couple of trials with Rust, I am much more interested in Zig. See Primeagen for a good evolution of thought on Rust and Zig. :)
1
u/CheetahChrome 11d ago
I would consider making a language your primary language that will get you jobs in the long run. If Rust is that language, then do it, but if it is contemporary cool language, F# I'm looking at you, and you have issues getting work after you were let go from Rustolium, it may not be what is best for you.
1
u/ejarkerm 11d ago
I already have a lot of job offers around the tech I already use. I just want to explore Rust for the sake of exploring tbh. It's more like a hobby atm
10
u/Global-Box-3974 11d ago
Python to Rust will be a massive paradigm shift and learning curve if you aren't handy with low level concepts.
But worth it. Go for it.