4 ms·
What resources would you recommend for learning Rust? There's the official tutorial but I have to admit that the later parts of it go over my head a little bit.
by veeti 13y ago
What resources would you recommend for learning Rust? There's the official tutorial but I have to admit that the later parts of it go over my head a little bit.
- dmunoz 13y agoIt's hard to say, as it depends on what your previous experience is with similar languages to Rust. Plenty of people are suggesting Rust for Rubyists, which is a good resource. I personally found it too simple, which is not a reflection on the resource but instead what I was looking for. It is likely to be exactly what plenty of people are looking for. I wanted to give some motivation for keeping on at the official tutorial. Some of its contents went over my head initially as well, but I read it again a couple of weeks later, and everything clicked into place. It's a really awesome guide to the language, and the links at the end to guides to various more specialized parts of the language are similarly awesome.
- pcwalton 13y agoRust for Rubyists is a great resource I can vouch for (not just for Rubyists): http://www.rustforrubyists.com/ http://www.rustforrubyists.com/
- duaneb 13y agoI can vouch for this—the overlap between the two languages is mostly the anonymous function syntax.
- mitchty 13y agoTo be sure I think the most similar language to rust would be probably c++. At least I get a distinct "created by c++ developers" whenever I use it. Not that that is a bad thing, just that if you've programmed in almost any imperative language you're fine reading that online book. I'd love to use rust to replace my C stuff in the future if possible once it stabilizes. But until then I am just popping back to that book every other even .N release to have a look-see at progress.
- maxiepoo 13y agoI was disappointed in how little detail this went into on the different pointer types and how/when to use each one. IIRC, it doesn't even mention lifetimes, which are the feature that's currently stopping me from writing any rust code (because I don't know how to fix lifetime problems).
- b0b_d0e 13y agoAs far as fixing lifetime errors is concerned, I would recommend breaking your code down into a simpler form so that you can look at the lifetimes from a broader perspective. If you have a simple test case that mimics the same error that your main program has and you still can't solve it, you can simply make a gist for it and ask on the IRC and they usually are able to point out the error. In my experience with lifetime errors, doing it in this method sometimes reveals the simple error I was over looking, or in other cases after asking on IRC I learn something new about lifetimes.
- steveklabnik 13y agoI wrote this too: http://words.steveklabnik.com/pointers-in-rust-a-guide http://words.steveklabnik.com/pointers-in-rust-a-guide
- eridius 13y agoI have never actually read it myself, and I don't know what version of Rust it currently targets, but I've heard good things about Rust For Rubyists (http://www.rustforrubyists.com http://www.rustforrubyists.com), written by Steve Klabnik.
- Tomte 13y ago0.9, I guess. At some point (shortly after the 0.9 release?) one of the first examples stopped working with a then-current git build, so I stopped reading it and concentrated on the official tutorial more.
- steveklabnik 13y agoI actually updated it to 0.10, I just haven't deployed it yet. It'll be up in a few hours.
- malandrew 13y agoDespite its unfortunate name that unnecessarily limits the audience which might find it useful, you might want to check out http://www.rustforrubyists.com/ http://www.rustforrubyists.com/ It's basically a tutorial for people coming from typeless, pointer-less dynamic languages, whereas the official Rust tutorial assumes familiarity with the concepts that a C (or C++, C#, Objective-C) developer would know
- steveklabnik 13y agoMy love of alliteration has certainly harmed my audiences. Oh well. :/
- deleted 13y ago[deleted]
- malandrew 13y agoI am not a rubyist and I almost dismissed your book because of the title because I assumed it would lean heavily on concepts from ruby with which I would not be familiar and therefore be no more enlightening than the official rust tutorial. i.e. I assumed it would teach one foreign concept based on another foreign concept.
- steveklabnik 13y agoOriginally I envisioned more of that, it just didn't shape up that way. Hopefully I will have something better and more generic near the 1.0 release ;)
- deleted 13y ago[deleted]
- malandrew 13y agoAwesome. Looking forward to it.
- b0b_d0e 13y agoOne thing that has really helped me is picking a project that I really wanted to make and learning Rust while making the project. A read through of the tutorial also went over my head at first, but when the concepts started to show up in my program the tutorial also started to make sense. There is the documentation which you can also look through for specific examples, and also there are lots of small resources to read here http://static.rust-lang.org/doc/master/index.html http://static.rust-lang.org/doc/master/index.html Probably the best resource though is the IRC where you can ask just about any question and they'll usually answer it in a very short time.
- cordite 13y agoAnd if they don't, ask a few hours later.