New to Rust - what is the most fun way to learn the language?

https://programming.dev/post/47630671

New to Rust - what is the most fun way to learn the language? - programming.dev

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 know the best beginner reference book please lmk! Peace out!

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

A language empowering everyone to build reliable and efficient software.

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

I didn’t like “The Rust Book” because it seemed too slow and patronizing, but that’s probably just me.

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

Welcome to Comprehensive Rust 🦀 - Comprehensive Rust 🦀

Rustlings

Small exercises to get you used to reading and writing Rust code!

@eager_eagle @anything_but_windows this is great, I'll be recommending it to ppl who want to learn rust

(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.

The Rust Programming Language - The Rust Programming Language

rust-unofficial.github.io/too-many-lists/

This is what I always recommend

Introduction - Learning Rust With Entirely Too Many Linked Lists

Learning Rust With Entirely Too Many Linked Lists

@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
GitHub - codecrafters-io/build-your-own-x: Master programming by recreating your favorite technologies from scratch.

Master programming by recreating your favorite technologies from scratch. - codecrafters-io/build-your-own-x

GitHub
I always thought this roguelike tutorial sounded fun. But it’s probably pretty far out of date, not sure how much that matters.
Licensing - Roguelike Tutorial - In Rust

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.

Introduction - Rust By Example

Rust by Example (RBE) is a collection of runnable examples that illustrate various Rust concepts and standard libraries.