this post was submitted on 22 Mar 2026
19 points (100.0% liked)

Rust

7875 readers
46 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS
 

Howdy! I already have some programming experience - i have taken 2 undergraduate-level courses in C - namely Computer Architecture an Operating Systems. My main interest in wanting to learn is that Rust seems to offer huge security benefits as compared to C.

Also if anyone knows a great beginner reference book please lmk! Peace out!

top 8 comments
sorted by: hot top controversial new old
[–] FizzyOrange@programming.dev 1 points 4 hours ago

I always like "by example"s for learning languages - here's Rust's.

I'd probably make a project with it. Maybe a CLI tool using clap_derive and some crate that does something neat that you want to do. Depends what you're interested in I guess.

I wouldn't recommend trying to do leetcode problems with Rust because they are obsessed with linked lists and linked lists are awkward in Rust.

Also I wouldn't recommend making a game or GUI app with Rust yet since the ecosystems there are immature.

A microcontroller project using Embassy is probably a fun way to learn too but I haven't actually tried it yet.

[–] emb@lemmy.world 1 points 7 hours ago* (last edited 1 hour ago)

I always thought this roguelike tutorial sounded fun. But it's probably pretty far out of date, not sure how much that matters.

[–] nicoan@fosstodon.org 2 points 9 hours ago

@anything_but_windows I usually like to mix my learning experience with an interesting toy project (https://github.com/codecrafters-io/build-your-own-x) along with the material suggested here

[–] eager_eagle@lemmy.world 9 points 20 hours ago
[–] roguelazer@lemmy.world 3 points 16 hours ago
[–] Deebster@infosec.pub 5 points 20 hours ago* (last edited 16 hours ago)

(edit: I see I missed the part about being fun, but I don't know of better alternatives)

I learnt with the one on the main site, "the Rust book" which is good for explaining concepts and is (or certainly was) considered the standard textbook.

Rust by Example is good for a quick start in how to do various things, but imho is most valuable for experienced programmers and as a cheatsheet-style reference.

Once you start writing your own code, it's useful to look at Blessed.rs to show what are the fairly standard options for basic libraries for logging, http, etc that you might have expected to be in the standard library. It's useful to be pointed at something that's good enough instead of spending hours investigating the various competing crates.

[–] solrize@lemmy.ml 3 points 20 hours ago

I read the Google book a while back and it seemed decent: https://google.github.io/comprehensive-rust/

You might also be interested in Ada or Haskell as a way to widen your perspective from C.

[–] hendrik@palaver.p3x.de 1 points 20 hours ago

They have a few options on their website: https://rust-lang.org/learn/