How To Speak Rust

preview_player
Показать описание

The first of a 3-part Rust language guide, explaining rustc and clippy's output from basic, through intermediate, to advanced.
I hope you like it! It was fun collecting all these examples, if you have your own favourites, do share below, or on discord or mastodon if you like :-)

🖊️ Corrections are in the pinned ERRATA comment.

🙏🏻 CREDITS & PROMO
My name is Tris Oaten and I produce fast, technical videos.

👏🏻 Special thanks to my patreon sponsors:
- JC Andrever-Wright
- Miah Beach
And to all my patrons!
Рекомендации по теме
Комментарии
Автор

ERRATA

3:58 for loops use iterators themselves, they are not used instead of iterators. I meant to say "while loops"!

NoBoilerplate
Автор

YES! I've been waiting for this video. I needed more rust content to distract me from learning rust.

tuna
Автор

god I hadn't really realised until having to retrain my instincts for rust how much c++ had conditioned me never to read error messages beyond the file and line number

Throckmorpheus
Автор

3:24 - Your Vihart / Tau reference was great!

Carhill
Автор

"through thorough thought though" .. that would be a shirt to make people stop and stare

tamatoFiend
Автор

I've been watching you for a long while now and I love how engaged you are with your community and doing consulting with patreons really fits your style

local.interloper
Автор

Fearless concurrency is a truly revolutionary aspect of Rust. Concurrency has long been a minefield of weird rules that don't come up often, and undebuggable production crashes that ruin my weekend. I didn't realize how much of my brain was occupied by the arcane footgun-prevention rules of concurrent programming that I can just… let go of in Rust. It's wonderful, and it's exciting to see languages like Swift end up at very similar conclusions for their concurrency models.

Steve_Streza
Автор

I've been programming for over 20 years (translation: I've got some good habits, and many more bad habits) but learning and tinkering with Rust for maybe a year or two, and only in my spare time. I've realized that learning Rust has made me a better programmer in other languages, and this video highlights one of the biggest reasons why. It's not only good advice to read the error messages. In Rust, you kinda have to, especially if you want to go fast(er). I've gotten so accustomed to glossing over and barely reading error messages in other languages, but in Rust, it's especially counter-productive to do so because the compiler is incredibly helpful. Taking an extra minute or two to ACTUALLY read and digest the error message, think about it, then take action has made me more efficient. And I found that I've started translating this habit to other programming languages. Of course, other languages don't have compilers as good as Rust, but I find myself wasting less time making assumptions about what I think I know and am resolve issues more quickly.

dannelalbert
Автор

4:40 I would say that developers also live before compile time, meaning that errors you can read while writing code (e.g. LSP diagnostics) are even more useful than errors available strictly at compile time. Also the ability to use code actions to fix errors comes into play before compile time.

foobar
Автор

The rust feature videos are back! Always love these.

I'm curious, do you ever plan on doing a video about FFIs or obscure (but useful) Rust type methods? I'd love to see videos on them!

yossipossi
Автор

I am sending this to all my Typescript friends. This is amazing ❤

TechBuddy_
Автор

My wish is simple. I wish this awesome genleman starts practical series using Rust. A small funny project guided by this RustGoku would be a dream that comes true. Many greetings from the Czech Republic.

jaroslavhuss
Автор

Awesome video, thank you. But I have to say that I laughed when you said "kind and generous people" and all the recent trouble about the Rust foundation came to my mind.

edupsousa
Автор

Impressive, very nice. Let's see Paul Allen's crablang guide.

BeyondLegendary
Автор

Impeccable timing. I was just re-watching your videos these past couple days.

InnsmouthAdmiral
Автор

Been programming since I was 12, all web related and came across your channel about a month ago and gave rust a try and wow. For those hesitant to learn a new language this is the one.

Keep up the awesome videos Tris!

cybersholt
Автор

Triss, great vids. I’ve taken the rustpill and it’s hard to go back. Keep up the amazing content.

Ben-omni
Автор

I wish more Rust libraries, tools and stuff was named after fungi 😊

LukaSauperl
Автор

That's so nice! Congrats on having opportunity to do Rust full time :D

RootsterAnon
Автор

I do not work with Rust but I watch your videos because I love your presentation style.

harshavardhanbose