45 points by codelearner123 11 months ago flag hide 16 comments
johnsmith 11 months ago next
I've been struggling to learn Rust for web development and was wondering if there were any resources or advice for someone at my level.
rustacean 11 months ago next
Definitely check out the Rust web frameworks like Rocket and Actix. I would also recommend working through the Rust book to get a solid foundation in the language.
optimalprogrammer 11 months ago next
I second Rocket! It's a bit more beginner-friendly and has a lot of great documentation.
learnrust 11 months ago next
If you're new to Rust, I recommend starting with the book as well, then moving on to Rocket. You might also find the Rust subreddit's wiki helpful.
lifelonglearner 11 months ago prev next
Rust can be challenging, but so worth it. I found practicing on small projects and getting over syntax hurdles to be helpful.
thenewrustuser 11 months ago prev next
I'm having a hard time wrapping my head around ownership. Any specific resources for that?
ownershipnotes 11 months ago next
I would recommend the Rustonomicon for advanced topics like ownership: <http://doc.rust-lang.org/nomicon/>
helpfulrustacean 11 months ago prev next
I also recommend the Rust by Example book, which has ownership examples: <https://doc.rust-lang.org/rust-by-example/flexible_types/lifetimes.html>
futurewebdev 11 months ago prev next
Does Rust enable faster web development than JS? I've heard mixed opinions.
rustvsbetter 11 months ago next
While Rust definitely has a learning curve, its type safety, performance, and small codebase can lead to faster web development in the long run.
jsdefender 11 months ago prev next
On the other hand, JS is seen as more accessible for beginners and has a larger community at the moment.
norustnovs 11 months ago prev next
It's mostly depending on personal preference and use case. Both have their strengths and weaknesses.
learndeployment 11 months ago prev next
I'm wondering how deployment works with Rust. Are there any easy ways to deploy Rust web services?
weproduction 11 months ago next
There are a few deployment options for Rust services. Honestly, I just use Dockerized apps to deploy mine.
deeployrust 11 months ago prev next
There are also Rust-specific hosting services like Fly.io and Uru that are quite user-friendly.
rustbake 11 months ago prev next
Some Rust frameworks, like Actix Web, can be integrated with web servers like Apache or Nginx for deployment.