Live data from Hacker News

Rust Language Cheat Sheet

cheats.rs

51–60 of 65 posts

Re: Rust Language Cheat Sheet

#52

Ralf Biedert, thanks so much for this! I've been learning Rust via the Rust Book for the past few months and this will help so, so much - fantastic work.

I know everyone says how good Rust's documentation is but I tried learning Rust with The Rust Book and found it frustrating: too long and wordy on the easy bits and without useful insight on the hard bits. I ended up buying Programming Rust by Jim Blandy [0] on a recommendation from HN comments and found it must easier to learn from. I'm already familiar with several other languages, which that book assumes, so your…

> I know everyone says how good Rust's documentation is but I tried learning Rust with The Rust Book and found it frustrating: too long and wordy on the easy bits and without useful insight on the hard bits. I ended up buying Programming Rust by Jim Blandy [0] on a recommendation from HN comments and found it must easier to learn from. I'm already familiar with several other languages, which that book assumes, so your milage may vary.

> [0] https://www.amazon.co.uk/Programming-Rust-Jim-Blandy/dp/1491....

Thanks for tip, the Rust Book is working well for me so far but it's good to know of other good options.

Re: Rust Language Cheat Sheet

#55

I love the design of this site. It is compact, dense and to the point. I think we need to port cheatsheets for most popular languages in this format. There is also Learn Y in X minutes[1] which I often refer to but a cheatsheet like this where everything is neatly organized would be a huge help. I jump between 3-4 languages everyday and it is a pain in the ass to Google syntax, frankly embarrassing that I have to. [1…

Oh, my! I have spend countless hours on the web looking for (and successfully finding, of course) cheat sheets for all sorts of languages, but somehow I had never come across this site. This is extremely well done. Thank you,spectramax, for basically revolutionizing my life this morning! :)

Surprisingly, https://learnxinyminutes.com/docs/bash/ is the best resource out there to learn shell scripting. This page basically turned me from a novice who could only write two commands with | or && between them to a competent shell programmer. My shell scripts have functions, descriptive variables, error handling, good formatting, etc.

Re: Rust Language Cheat Sheet

#57

Earlier quoted context omitted.

This is why I'm glad we have both; I don't think one resource could ever satisfy everyone. Pumped to see Rust in Action getting closer to publication too!

I just bought Rust in Action a couple weeks ago (after having gone up to chapter 11 in the No Starch book). It's definitely good to have both. I'll probably do 1/2 the new book, finish the 1st one and then finish the new one. I did pretty much the same thing with Dave Thomas's Programming Elixir book, bailing halfway through, using a 2nd resource to consolidate, and then returning to finish it. I like learning Rust s…

> I like learning Rust so far. The main thing I wonder is what kinds of projects are good to do while learning. I went from Node to Rails to Phoenix and normally I just rewrite web apps I've previously created in the language I'm learning. With Rust, it feels like I should build something different, something lower-level like a tool, an emulator or a 2D game.

If your experience is web apps, I would stick with that; Rust has a great web app story in the form of at least two mature frameworks.

Re: Rust Language Cheat Sheet

#58

Earlier quoted context omitted.

You’re not alone. I found the Rust book very hard going, whereas Programming Rust was just the right amount of rigor and interesting examples for me.

This is why I'm glad we have both; I don't think one resource could ever satisfy everyone. Pumped to see Rust in Action getting closer to publication too!

I remember mentioning in a thread here a while back that I so enjoyed flicking through your/Carols' book online that I wished I was learning Rust, though I was unlikely for practical reasons to do so. Well now I am, and that exposure via a pleasurable read was what seeded the idea.

It's true it's not a terse breakneck intro for advanced programmers. But as an experienced developer, I'm enjoying it no less for that. In any field I've been involved in, I've always enjoyed revisiting fundamentals, and in the context of learning a new (and let's be honest, not very easy or familiar) programming language this seems even more appropriate.

Perhaps if I were learning Rust for work I'd want something more distilled to get me started. Even there I'm sure I'd read TRPL at some point. But right now I'm finding it an enjoyable way to get underway for my own interest.

Re: Rust Language Cheat Sheet

#60

Earlier quoted context omitted.

This is why I'm glad we have both; I don't think one resource could ever satisfy everyone. Pumped to see Rust in Action getting closer to publication too!

I remember mentioning in a thread here a while back that I so enjoyed flicking through your/Carols' book online that I wished I was learning Rust, though I was unlikely for practical reasons to do so. Well now I am, and that exposure via a pleasurable read was what seeded the idea. It's true it's not a terse breakneck intro for advanced programmers. But as an experienced developer, I'm enjoying it no less for that. I…

Thanks!
Post reply on HN