3 ms·
While not for beginners, if you'd like to learn rust I recently finished "Command line Rust" [1]. It was my first introduction to rust and the book was quite e
by azemetre 4y ago
While not for beginners, if you'd like to learn rust I recently finished "Command line Rust" [1].
It was my first introduction to rust and the book was quite enjoyable. It starts off with teaching you the very basics of a command line (what it means to exit, true, or false, etc) and each chapter has you recreate a popular command line tool (like grep, cal, tail, wc) while introducing a new rust concept.
The book also does TDD, test driven design, by first teaching you how to create these tests then in subsequent chapters having the tests prewritten for you.
It's definitely worth a look, the author has a great writing style as well that isn't as monotonous as most programming books I've read.
[1] https://www.oreilly.com/library/view/command-line-rust/9781098109424/ https://www.oreilly.com/library/view/command-line-rust/97810...
- adolph 4y agoCame here to mention just that book. It is excellent.
- lifewallet_dev 4y agoThank you! I needed this one, how fun, I did this when learning Haskell, now I can do it with Rust.
- dbalatero 4y agoJust to clarify, when you say "not for beginners" do you mean beginners to Rust or programming in general? edit: Based on your "It was my first introduction to rust" comment I think maybe you meant programming beginners?
- azemetre 4y agoSorry, I meant that you need some programming experience. It will not teach the basics of if loops, making structs, etc; it's a good introduction to rust, prior programming experience required.
- mrmuagi 4y agoI'm assuming you also need to understand pointers and memory layout perhaps?
- azemetre 4y agoDefinitely pointers, but IIRC it does go over the concepts. I don't recall if it ever touches lifetimes tho. The book basically uses the crate clap to create all the CLTs, along with specific crates for regex and creating ascii tables for the cal clone.
- racl101 4y agoGlad we can buy the book standalone without getting a membership to O'Reilly.
- azemetre 4y agoI may sound like a shill but I think paying for O'Reilly is worth it. You get access to many books and videos outside the O'Reilly publisher. Definitely worth it, I tend to read a tech book a month (maybe 2 if it's "light.") Many of the books being suggested in the other comments are available as well (will definitely start Hands-On Rust because it seems very cool, and Practical Common Lisp shortly afterwards). Out of all the "tutorial" offerings I only pay for three services: O'Reilly (four years so far) Educative.io (two years) Frontendmasters (eight years) Every year I test out other services (pluralsight, lynda/linkedin learning, egghead, etc) but outside of one or three core offerings they don't seem to be a good value for what I want.
- racl101 4y agoThat's fair. I think some people just like the option of buying the book.
- maerF0x0 4y agoI like having a physical book sitting on my desk practically screaming "Read me, why did you buy me if you're not gonna read me?" ... As opposed to all those ebooks not even downloaded, let alone seen.
- digianarchist 4y agoIt's free if you have a Toronto Public Library card.
- shrugsworth 4y agoI'm curious why you pay for those services and not the others. Is it a matter of topics, teaching style?