TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Are there any easy Rust tutorials out there?

10 pointsby mdwaltersover 1 year ago
I've not been able to grasp Rust, and I've looked through the Rust book, and Learn X in Y minutes, and still having difficulty confidentially learning Rust. Are there any easy tutorials out there for Rust that you've used in the past?

8 comments

mgomezover 1 year ago
Give &quot;A half-hour to learn Rust&quot; a try: <a href="https:&#x2F;&#x2F;fasterthanli.me&#x2F;articles&#x2F;a-half-hour-to-learn-rust" rel="nofollow noreferrer">https:&#x2F;&#x2F;fasterthanli.me&#x2F;articles&#x2F;a-half-hour-to-learn-rust</a><p>Books&#x2F;tutorials&#x2F;etc. never really worked for me because they were all &quot;happy path&quot; exercises (read: too boring). Things only started clicking when I had to overcome obstacles while porting projects written in different languages over to Rust.
dupedover 1 year ago
There&#x27;s a steep learning curve to the language. The key thing to remember is that you cannot have multiple mutable aliases to the same data.<p>The best thing to do is write enough code in projects you understand until the fundamentals click. Stay away from async until you get those, then why async is the way it is will make sense.
sevenpeasover 1 year ago
Do it the long, slow way. Write and run every example in the Book, in order. It takes you from “hello world” to a multi-threaded web server. This is a long task, so spread it over a few days. Read the text as you’re coding to understand it and get the fundamentals down. The Book is really more of a tutorial than a reference.<p>After writing out the book’s examples, you will probably struggle with borrowing but after a few weeks of building things it will click. You will then face an overwhelming urge to write and rewrite everything in Rust.
dnh44over 1 year ago
Try the Rustlings course or the interactive version of the rust book.<p><a href="https:&#x2F;&#x2F;rust-book.cs.brown.edu" rel="nofollow noreferrer">https:&#x2F;&#x2F;rust-book.cs.brown.edu</a>
the__alchemistover 1 year ago
I would treat it like other imperitive languages, and follow the compiler errors until you learn where to put the &amp;s and *s. Stay away from traits, macros, async, and unsafe until you have the basics down. Running clippy will also teach you about available patterns.<p>Maybe stay away from map&#x2F;filter&#x2F;closures etc in favor of loops at first. They can have tricky syntax.
potsandpansover 1 year ago
A lot of good suggestions in thread so far. I&#x27;ll take an alternative approach:<p>What are you having a hard time with? What are you familiar with, and what concepts are you getting stuck on?
sexymaniacover 1 year ago
<a href="https:&#x2F;&#x2F;tourofrust.com&#x2F;index.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;tourofrust.com&#x2F;index.html</a>
leandotover 1 year ago
Try implementing something useful for you in Rust from scratch, without following a tutorial. Books will only get you so far.
评论 #37611967 未加载