Almost every day, I see people get lost trying to emulate pointers, often in some kind of linked list or similar structure reminiscent of their CS courses days. Or losing time trying to imitate OOP patterns in Rust.
This started a study of common errors people make when trying to learn Rust, and I finally wrote this blog post: How not to learn Rust.
This post isn't how you would learn Rust, but a reading I suggest to people at the beginning of this adventure.
Me ∈ {Engineer, Nerd, Programmer, Freelance Developer, Atheist, Physics Enthusiast}. I also compose music, draw paintings and SLEEP (quite a lot in fact!).😜
Location
Mathura, India
Education
National Institute of Technology, Kurukshetra, India
Work
Full Stack Developer at Rankia | Comunidad Financiera
I read this article a few days ago and now it's bookmarked! I found it just the right time as I wasn't sure how to start again. All previous attempts went in vain, haha.
🦀 Small exercises to get you used to reading and writing Rust code!
rustlings 🦀❤️
Greetings and welcome to rustlings. This project contains small exercises to get you used to reading and writing Rust code. This includes reading and responding to compiler messages!
...looking for the old, web-based version of Rustlings? Try here
Alternatively, for a first-time Rust learner, there are several other resources:
The Book - The most comprehensive resource for learning Rust, but a bit theoretical sometimes. You will be using this along with Rustlings!
Rust By Example - Learn Rust by solving little exercises! It's almost like rustlings, but online
Getting Started
Note: If you're on MacOS, make sure you've installed Xcode and its developer tools by typing xcode-select --install.
You will need to have Rust installed. You can get it by visiting rustup.rs. This'll also install Cargo, Rust's package/project manager.
MacOS/Linux
Just run:
curl -L https://git.io/install-rustlings | bash
# Or if you want it
There is the Rust book itself, freely available, but some folks say it's too dry. I started it but it did get a little too dry for me too.
Also, if you have an education fund at work, I bought the Rust Adventure course from Chris Biscardi. I haven't had time to do it yet, but it's supposed to be awesome.
Even three years later I find this tweet thread still useful:
Andrea Pessino
@andreapessino
A THREAD ABOUT LEARNING THE RUST PROGRAMMING LANGUAGE @rustlang
Rust is a practical solution to concrete problems that have hindered progress in software development for the last two decades. It is a leap forward in potential performance, scalability and productivity.
before the stereotypical "just go and build something" demonstrates just how different Rust is (imperative yet expression based, ownership/lifetimes, traits).
The free sample chapter of Rust for Rustaceans is amazing — it's intended as a review for the intermediate developer but also serves as a 17 page outline of the characteristics that make Rust so different from the more established languages.
I started with the official docs ("The Book"), and they're excellent - highly recommended to begin with them, and not with some random "quick tutorial".
I work as CPO for a Swiss Telco/Messaging Platform Company.
My real passion is developing in Golang, Vue-Nuxt/ReactJs/Angular with Redis, Nsq/RabbitMQ, ArangoDB, MongoDB and Sql
Software developer based in the Cardiff, UK, area. Any views or opinions expressed are my own and do not reflect those of my employer past, present or future.
Almost every day, I see people get lost trying to emulate pointers, often in some kind of linked list or similar structure reminiscent of their CS courses days. Or losing time trying to imitate OOP patterns in Rust.
This started a study of common errors people make when trying to learn Rust, and I finally wrote this blog post: How not to learn Rust.
This post isn't how you would learn Rust, but a reading I suggest to people at the beginning of this adventure.
I read this article a few days ago and now it's bookmarked! I found it just the right time as I wasn't sure how to start again. All previous attempts went in vain, haha.
Thanks for the share!
I did a Rust course and streamed it. No pressure to watch it, but you may find it helpful.
The course I did in my stream above was Take your first steps with Rust from Microsoft.
Rustlings is great too.
🦀 Small exercises to get you used to reading and writing Rust code!
rustlings🦀 ❤️
Greetings and welcome to
rustlings. This project contains small exercises to get you used to reading and writing Rust code. This includes reading and responding to compiler messages!...looking for the old, web-based version of Rustlings? Try here
Alternatively, for a first-time Rust learner, there are several other resources:
rustlings, but onlineGetting Started
Note: If you're on MacOS, make sure you've installed Xcode and its developer tools by typing
xcode-select --install.You will need to have Rust installed. You can get it by visiting rustup.rs. This'll also install Cargo, Rust's package/project manager.
MacOS/Linux
Just run:
I haven't taken it, but the freeCodeCamp Rust course is supposed to be awesome.
There is the Rust book itself, freely available, but some folks say it's too dry. I started it but it did get a little too dry for me too.
Also, if you have an education fund at work, I bought the Rust Adventure course from Chris Biscardi. I haven't had time to do it yet, but it's supposed to be awesome.
first install rust, then...
use this magic cli command
rustup docs --bookand
rustup docs --rust-by-examplethe above will open a local copy of the appropriate rust books in your browser
use
rustup docs --helpfor even more options!Even three years later I find this tweet thread still useful:
Working through:
1 The Rust Programming Language
2 Rust By Example
3 Programming Rust
before the stereotypical "just go and build something" demonstrates just how different Rust is (imperative yet expression based, ownership/lifetimes, traits).
Learn Rust With Entirely Too Many Linked Lists can be a good guided tour on how these capabilities can be used even on something so deceptively simple.
The free sample chapter of Rust for Rustaceans is amazing — it's intended as a review for the intermediate developer but also serves as a 17 page outline of the characteristics that make Rust so different from the more established languages.
Stop thinking in terms of (im)mutablity:
Easy Rust!
Thanks for the share!
I started with the official docs ("The Book"), and they're excellent - highly recommended to begin with them, and not with some random "quick tutorial".
After you learned Rust you might use rustjob.xyz to find a Rust Developer Job
Rust from the beginning, your first program
Chris Noring for Microsoft Azure ・ Nov 18 ・ 3 min read
Thanks for the share Ben!
I found the exercism rust track great for making the ideas stick and to help make friends with the (initially infuriating) borrow checker.
exercism.org/tracks/rust
github.com/sahilrajput03/learning_...