Skip to content

Instantly share code, notes, and snippets.

@alexander-hanel
Last active September 30, 2023 01:20
Show Gist options
  • Save alexander-hanel/f1bddaede03efdab90160f1de6fec091 to your computer and use it in GitHub Desktop.
Save alexander-hanel/f1bddaede03efdab90160f1de6fec091 to your computer and use it in GitHub Desktop.
Learning Rust

Learning Rust

Rust has kind of a steep learning curve but fortunately the Rust community has created some amazing resources for it. The approach I have taken is an iterative one using the following five resorces.

  1. The Rust Programming Language
  2. Rust by Example
  3. Introduction to Programming Using Rust
  4. rustlings
  5. Learning Rust by Working Through the Rustlings Exercises

I use The Rust Programming Language (link 1) chapters as a guide on what topics to focus on. I'll read a chapter and then find corresponding chapters/topics in other links. There is an almost one to one relationship across the links because almost all of them are created by the Rust community. Introduction to Programming Using Rust (link 3) is not created by the Rust community but is a great resource that is not cut and paste from previous Rust community documentation. Rustlings (link 4) is an is a set of broken code examples grouped by topic. Upon installing, Rustlings monitors the code and tries compile the examples to see if you fixed the code. Note: The rustlings process needs to run on a dedicated command line. Don't try to execute commands in that window, I had that hiccup when I was trying to figure out how it worked. Learning Rust by Working Through the Rustlings Exercises (link 5) walks through the Rustlings exercises. These videos are great for explaining the topics or helping with issues I wasn’t able to solve.

After going through all the links, I'll read the next chapter in link 1 and iterate through all the links again.

Dev Setup

I'm currently using VSCode in the browser through Gitpod on an iPad with a magic keyboard. Gitpod is super cool and simple to use. I logged in using my github account, opened the rustlings repo and now I have a full development enviornment for running rustling, downloading crates, compiling code and exploring Rust.

Update: Github has made Codespaces free which can be used to replace Gitpod.

Other Resources

@alexander-hanel
Copy link
Author

Example of gitpod on my iPad
5FCFCFCA-C58A-4844-9AFE-DA10C8571350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment