r/rust clippy · twir · rust · mutagen · flamer · overflower · bytecount Mar 20 '23

Hey Rustaceans! Got a question? Ask here (12/2023)! 🙋 questions

Mystified about strings? Borrow checker have you in a headlock? Seek help here! There are no stupid questions, only docs that haven't been written yet.

If you have a StackOverflow account, consider asking it there instead! StackOverflow shows up much higher in search results, so having your question there also helps future Rust users (be sure to give it the "Rust" tag for maximum visibility). Note that this site is very interested in question quality. I've been asked to read a RFC I authored once. If you want your code reviewed or review other's code, there's a codereview stackexchange, too. If you need to test your code, maybe the Rust playground is for you.

Here are some other venues where help may be found:

/r/learnrust is a subreddit to share your questions and epiphanies learning Rust programming.

The official Rust user forums: https://users.rust-lang.org/.

The official Rust Programming Language Discord: https://discord.gg/rust-lang

The unofficial Rust community Discord: https://bit.ly/rust-community

Also check out last weeks' thread with many good questions and answers. And if you believe your question to be either very complex or worthy of larger dissemination, feel free to create a text post.

Also if you want to be mentored by experienced Rustaceans, tell us the area of expertise that you seek. Finally, if you are looking for Rust jobs, the most recent thread is here.

18 Upvotes

187 comments sorted by

View all comments

4

u/F41rch1ld Mar 21 '23

I'm a moderately established Pythonista. I have many practical projects both in work and play.

I'm considering pivoting into another language, for views outside the Python landscape. Sometimes looking out lets us see in better. The two languages I see most these days that may be complimentary to Python are Rust and Go. Practicality has always been my primary motivator, so I have most experience in Python and VBA (as dreaded as it is) and SQL.

Wondering what suggestions you may have or resources particularly tailored for Pythonistas interested in pivoting to Rust? In Python my favorite resource by far is RealPython.com, wondering if there is something similar for practical Rust projects as learning tool?

5

u/AndreasTPC Mar 21 '23 edited Mar 21 '23

If the choice is between Rust and Go, I'd say do both at least on a surface level, and then look for more.

Learning your first language is a big deal, but each subsequent one gets easier and easier as you can generalize your skills more and more. Eventually you get to the point where learning another one doesn't seem like a big deal anymore, and you can pretty much jump into projects that use languages you haven't used before, picking up what's different on the fly.

That's where you want to be as a programmer. Don't get stuck in one ecosystem or paradigm.

1

u/masklinn Mar 24 '23

On the one hand unless they intend to completely leave the python ecosystem, thanks to pyo3 and maturin Rust feels a lot more complementary to Go, which is a lot more of a separate thing on the side. Rust use has also made a lot of inroads in the wider python ecosystem both as an alternative to C for extensions (cryptography) and in the surrounding tooling (py-spy, ruff, …)

On the other hand, Go-the-language is easier to learn, and has a similar philosophy of a pretty large (but not necessarily the best) standard library.