Live data from Hacker News

Exercises to Learn Rust

rust-exercises.com

41–50 of 129 posts

Re: Exercises to Learn Rust

#41
post #21

Earlier quoted context omitted.

> 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

Alas, poor Yorick; I knew him well, Ferris.

(Slightly more seriously, the project to replace the borrow checker was called Polonius[1], so it wouldn't be the first Hamlet reference in Rust land.)

[1] https://github.com/rust-lang/polonius

Re: Exercises to Learn Rust

#42
Surprised no one has mentioned another great and similar resource called Rustlings [0] (yes very punny name). You are given some files with todo statements which you'll need to fix and make the code compile and pass all the tests. It's an interactive way to learn which is what got me through learning Rust a few years ago.

[0] https://github.com/rust-lang/rustlings

Re: Exercises to Learn Rust

#43
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

Also the same one who is making a new web server framework for Rust called Pavex, which is apparently pretty novel in how it works compared to others like Actix Web and Axum [0][1].

[0] https://www.lpalmieri.com/posts/a-taste-of-pavex-rust-web-fr...

[1] https://blog.logrocket.com/using-pavex-rust-web-development/

Re: Exercises to Learn Rust

#45
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 do not know the story, but I remembered the book because of that, and now after having mentioned it here, I just bought it.

So my n=1 study indicates it was a successful design. :)

Re: Exercises to Learn Rust

#48

What do you folks normally do after learning a language like this? (Assuming you don't use it for your day job.)

I never got a proper chance to experience Rust at work but always wanted to give it a go.

So I went through the Build your own Redis challenge by https://codecrafters.io. It was a a good excuse to get my hands dirty with all the different Rust concepts (with a bit of structure).

Re: Exercises to Learn Rust

#49
This certainly looks great.

I hate to be stickler, but on the very first page ("Syntax"), right after explaining comments, the text says "In previous exercise, you saw the greeting function..." Unless I'm missing something, this is the very first intro to Rust, and so there are no prior exercises...

Re: Exercises to Learn Rust

#50
post #37

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.

You get ridiculous performance gains with Rust a web backend. Even Microsoft is rewriting part of their C# backend to Rust on the 365 application side of things. Which is where you get to deal with the hefty ms-graph api which handles literal fucktons of data. Anyway. It is more verbose than something like Go or Python. I’m not sure it’s really so bad compared to most languages, but some of the benefits you get from…

Office team never was a big .NET fan, and they were partially responsible for Longhorn's failure, see also Hilo C++ tutorial made by the team as part of Vista SDK tutorials, or their love for Webwidgets to C++ code, so that isn't that surprising.

It isn't as if C# vlatest wouldn't be able to take up the task, Bing, XBox game servers, and other large scale services are fully on .NET.

Post reply on HN