LowEndBox - Cheap VPS, Hosting and Dedicated Server Deals

Rust By Example: The FREE Interactive Way to Learn Rust

Rust Programming LanguageI continue to be interested in learning Rust, the programming language that’s gaining ascendancy in the systems programming world.  I reviewed The Rust Programming Language which is not a bad book but I didn’t care for it, for reasons I outlined in a previous post.

Since then, I’ve moved on to Rust Exercises, which a very cool course you can take for free.  Through 100 exercises, you learn Rust step by step.

Go through “100 Exercises to Learn Rust”. It will teach you Rust’s core concepts, one exercise at a time. You’ll learn about Rust’s syntax, its type system, its standard library, and its ecosystem.

The course doesn’t assume any prior knowledge of Rust, but it assumes you know at least another programming language. It also doesn’t assume any prior knowledge of systems programming or memory management. Those topics will be covered in the course.

In other words, you’ll be starting from scratch! You’ll build up your Rust knowledge in small, manageable steps. By the end of the course, you will have solved ~100 exercises, enough to feel comfortable working on small to medium-sized Rust projects.

The way it works is that you read a chapter and then do an exercise to write code based on what you’ve learned.  There’s a cool utility it comes with that automatically checks your work.  It leverages Rust’s testing framework.

I’m guessing this was created for a consultant-lead class, as there are comments in the exercises like this:

// If you get stuck for more than 10 minutes on an exercise, grab a trainer! We’re here to help!

But regardless, I’ve been working through the exercises with no issues.

I would emphasize that this is not an “introduction to programming” program for people who’ve never written code before.  It’s not going to teach you what a variable is, what a loop is, etc.  You’re expected to know another programming language, and then this course will teach you what’s new to you about Rust.

I truly think this is the best way to learn any programming language.  I’ve often had the experience in my career of sitting through a course and following along as the teacher goes deeper and deeper into a subject.  All was well until I sat down to actually touch the technology or write the code and then…wait, what did the teacher say at the beginning?  Concepts and ideas you can get from lectures but to really get the code “in your fingers,” you need to have hands on keyboard.

Different people learn different ways, but when it comes to tech, actually doing the work yourself is the only way to learn.  That’s what Rust Exercises gives you.  If you want to learn Rust, give it a try!

No Comments

    Leave a Reply

    Some notes on commenting on LowEndBox:

    • Do not use LowEndBox for support issues. Go to your hosting provider and issue a ticket there. Coming here saying "my VPS is down, what do I do?!" will only have your comments removed.
    • Akismet is used for spam detection. Some comments may be held temporarily for manual approval.
    • Use <pre>...</pre> to quote the output from your terminal/console, or consider using a pastebin service.

    Your email address will not be published. Required fields are marked *