Live data from Hacker News

Exercises to Learn Rust

rust-exercises.com

21–30 of 129 posts

Re: Exercises to Learn Rust

#21
post #7

Worth noting that this set of exercises was created by the author of "Zero to Production in Rust", the well-reviewed book with the crab-in-a-human-skull cover[1]. [1]: https://www.zero2prod.com

> crab-in-a-human-skull cover Anyone know the story behind this?

I got a Hamlet vibe from it when I picked the book up when it originally released. It could just be because it looks pretty sick though

Re: Exercises to Learn Rust

#22

This looks like a great resource! https://rust-exercises.com/03_ticket_v1/07_setters This shows why I wouldn't use Rust for anything. Seems like a lot of verbosity for gains that don't really apply whatsoever for the kind of work I do (web apps and APIs). You have to remember let/mut fine, but then ownership/borrowing, and finally this `into()` thing - yuck! Like washing your face with sandpaper.

There’s a world outside of web development.

Re: Exercises to Learn Rust

#23

This is quite interesting! While we're on the topic, does anyone know of a similar set of exercises for learning Golang?

Go by example is an established favorite. https://gobyexample.com/

I love go. Now to continue with modern systems languages, here's ziglings: https://codeberg.org/ziglings

Re: Exercises to Learn Rust

#24
post #7

Worth noting that this set of exercises was created by the author of "Zero to Production in Rust", the well-reviewed book with the crab-in-a-human-skull cover[1]. [1]: https://www.zero2prod.com

> crab-in-a-human-skull cover Anyone know the story behind this?

Rust community members are known Rustaceans which is a play on the word crustacean. Crabs are a well-known crustacean. Crab in a human skull is a visual metaphor for learning Rust.

Re: Exercises to Learn Rust

#26
post #22

This looks like a great resource! https://rust-exercises.com/03_ticket_v1/07_setters This shows why I wouldn't use Rust for anything. Seems like a lot of verbosity for gains that don't really apply whatsoever for the kind of work I do (web apps and APIs). You have to remember let/mut fine, but then ownership/borrowing, and finally this `into()` thing - yuck! Like washing your face with sandpaper.

There’s a world outside of web development.

interesting!

Re: Exercises to Learn Rust

#27
post #22

This looks like a great resource! https://rust-exercises.com/03_ticket_v1/07_setters This shows why I wouldn't use Rust for anything. Seems like a lot of verbosity for gains that don't really apply whatsoever for the kind of work I do (web apps and APIs). You have to remember let/mut fine, but then ownership/borrowing, and finally this `into()` thing - yuck! Like washing your face with sandpaper.

There’s a world outside of web development.

Also, just because these examples are verbose doesn't mean that all Rust code is this way. Accessors/mutators aren't used super often in my experience, and the builder pattern is used occasionally, but isn't pervasive.

(I have historically been very skeptical of Rust on the web, but by now, I find it pretty pleasant. I of course know Rust very well already though.)

Re: Exercises to Learn Rust

#28
post #4

> To verify your solutions, we've provided a tool that will guide you through the course. It is the wr CLI (short for "workshop runner"). Install it with: > cargo install --locked workshop-runner I have no idea what this program / package manager is so I was going to throw my hands up and say great another mac-only tutorial, but apparently this is a package manager for rust, and also apparently it comes pre-installed…

> And keep referring to some prior exercise, that I can't find anywhere. Is there an "exercise 0" hiding somewhere?

It's not hiding, they link to it.

>> You can find the exercises in the companion GitHub repository.

https://github.com/mainmatter/100-exercises-to-learn-rust

And then they tell you to complete the exercises for each section before continuing and tell you exactly where the first exercise is:

> The exercise for this section is located in exercises/01_intro/00_welcome

Read the section titled "Structure" for all of this information.

Re: Exercises to Learn Rust

#30
post #4

> To verify your solutions, we've provided a tool that will guide you through the course. It is the wr CLI (short for "workshop runner"). Install it with: > cargo install --locked workshop-runner I have no idea what this program / package manager is so I was going to throw my hands up and say great another mac-only tutorial, but apparently this is a package manager for rust, and also apparently it comes pre-installed…

[deleted]
Post reply on HN