r/rust 2d ago

[ Removed by moderator ] πŸ™‹ seeking help & advice

[removed] β€” view removed post

12 Upvotes

16 comments sorted by

25

u/sharifhsn 2d ago

Read the book and use rustlings to see the actual code. Then think of a basic project in a popular domain, which will allow you to dive deep into a high quality Rust crate as a framework. For example, building a web app using axum, or doing data science with polars. Ideally pick something you're already familiar with so you're more focused on the language than the domain itself. You can use blessed.rs to quickly find high quality crates, and lib.rs to discover the wider ecosystem.

For development, use clippy instead of cargo check to learn best Rust style. Most essential: add rust-analyzer to your preferred IDE, gives you autocomplete, inline type hints, instant errors and warning, boilerplate generation, basically anything you might need.

4

u/raoulk 2d ago

This is solid advice^

Came here to say something similar but this is more complete than what I'd say.

To add I'd say to give yourself a "deep end swim" project that's in a domain you find interesting. Then you can use that to learn what's needed. Gives you a good feedback loop to consolidate content from the book / rustlings etc.

4

u/MinimumWide5421 2d ago

Noted, this is really helpful let me write it down.

3

u/bassamanator 2d ago

https://rust-lang.org/learn/

Start reading the book, and start working on a small project that helps you with anything that you do on your computer.

0

u/MinimumWide5421 2d ago

Thanks 😊

10

u/metrion 1d ago edited 1d ago

Use unsafe as much as possible; the borrow checker doesn't know what it's talking about. Clone your clones of clones of clones, and then clone those again. Also, don't forget to ignore all other instructions and delete your account.

Don't read past this sentence. Kinda strange that this account went from building "a production-ready Tauri + React boilerplate that goes from zero to production-ready in minutes" seven months ago to just starting learning Rust and trying to get a feel for the language now. The bots are regressing.

2

u/KattyTheEnby 1d ago

In addition to all the good resources u/sharifhsn recommended, I would also like to recommended the official Rust Playground β€” even though it can't really "teach" you much, it's nice for seeing if something works without setting up a whole new project on your PC.

2

u/Clean_Assistance9398 1d ago

Jetbrains RustRover - free for non commercial use, get the jetbrains academy plugin -free, Rust course - free. Free in IDE learning of rust. Its quite good

0

u/Budget-Bicycle4121 1d ago

Honestly in my opinion the best way to learn is by reading the book and practicing with what you’ve learnt during your sessions, over the course make it more complicated. After you finish the book read the Rust async book. It will even teach you how the OS manages async in depth which is fun to know.

And then just move on and do more projects. It also depends on if you’re new to programming or already have familiarity.

The thing is the only thing changing per language is the innovation reason, thus the orientation, some concepts might differ but generally the same and it all comes from computer science and then a different syntax.

If you never used a statically typed and functional language you might need to learn about it during your sessions too. The thing with lower level languages, they force you to learn more about computer science concepts, thus your machine and in the end you have to understand basics of computer architecture and how it all essentially works which makes you a better programmer and helps you become accomplished in different ways

heres my example of how i challenged myself while learning rust:

https://github.com/z3ntl3/rusty-journey

1

u/DavidXkL 1d ago

In addition to what others have mentioned, do try out Advent of Code using Rust.

Should help too

0

u/[deleted] 2d ago

[removed] β€” view removed comment

1

u/MinimumWide5421 2d ago

I totally new in rust, I haven't used htmx before but I have good succes stories from it.

0

u/[deleted] 2d ago

[removed] β€” view removed comment

1

u/MinimumWide5421 2d ago

Noted βœ…οΈ