Live data from Hacker News

Exercises to Learn Rust

rust-exercises.com

11–20 of 129 posts

Re: Exercises to Learn Rust

#11

[flagged]

Many of us program for fun, and Rust is a joy to work with (especially compared to the alternatives in its niche), so we talk about it a lot. Of course, when you need to get serious work done, the most fun and enjoyable tool is not necessarily the one that's best suited to the job.

Re: Exercises to Learn Rust

#13
post #6

[flagged]

Being the first language to contest C++ in places like the kernal is a pretty big deal, no? It helps that the borrow checker is a new idea around being safe without gc.

It is, but I see people using it in places where Java would be good enough.

Re: Exercises to Learn Rust

#15

[flagged]

It’s a mixed bag. Yes there is a lot of hipster fanboyism. But I’ve also seen a lot of old timers coming from a career in C++ where Rust basically formalizes a lot of best practices and removes a lot of the worst footguns. I see the hope in their miserable faces and so there is definitely something real about Rust – and not necessarily Rust itself, but just the proof of concept of it, that it’s possible to solve many of the problems low-level programmers have just accepted as fact-of-life for a long time.

Me personally I’m not from that background, and coming from higher level languages the selling points are not nearly as compelling given the learning curve and less mature ecosystem around many things. For instance, language performance is rarely the limiting factor in say API/backend development. Usually you have networking, io and databases eating most of your lunch, and also horizontal scaling is typically already in place for other reasons.

Re: Exercises to Learn Rust

#16
post #6

Earlier quoted context omitted.

Being the first language to contest C++ in places like the kernal is a pretty big deal, no? It helps that the borrow checker is a new idea around being safe without gc.

It is, but I see people using it in places where Java would be good enough.

But then they'd have to learn java

Re: Exercises to Learn Rust

#17
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?

Re: Exercises to Learn Rust

#18
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.

Post reply on HN