The Rust Survival Guide

preview_player
Показать описание
Think Rust is hard? In this video, I'll guide you through the essential aspects of Rust programming. These topics often pose challenges, leading developers to the brink of frustration. By the end of this tutorial, you'll be armed with the knowledge to write Rust code confidently.

Chapters:
0:00 Intro
0:45 Memory Management
2:18 Ownership
5:19 Borrowing
10:02 Lifetimes
11:53 Conclusion
Рекомендации по теме
Комментарии
Автор

Finally a brief/quick explanation/example for lifetimes!

Apparently, I've missed the part about the generic collapsing to the shortest duration among matching arguments each time I've tried to learn.

That part of the vid could be its own clip/short.

Using the colored vertical lines is a great way to visualize the lifetimes. You could also add inline color to the matching variable references.

steamerk
Автор

In the example with pushing an element to the vector you introduced a bug, when you put last element in the variable there was the last element of the vector before it was modified (not 4), but after you swap lines in the last there will be always 4. That's why when you fight with borrow checker you might introduce bugs in business logic. But in this case I believe unit tests are good option to fix that.

АртемФедоров-юб
Автор

Ive never watched anything about rust or memory stuff in general but still understood most of the things you explained. I would say you did an amazing job at explaining it

forestcat
Автор

I have just wrote down these rules into anki cards after watching video from your rust playbook's course yesterday. I have repeated these cards already for like 3 times and i can say that starting learning rust through spaced repetition is greatest decision i made and i recommend this way for everybody

mikhalpalych
Автор

You explain stuff really well bro, thank you!!

Sergio-dssq
Автор

Really good teaching by example here. I feel like a lot of the time words themselves fail to illustrate concepts like this. Seeing how it works with actual code really cements it. Please keep making videos like this where you can demonstrate such concepts, thanks!

DogeOfWar
Автор

Thank you for highlighting these Rust essentials in memory management as well as your clear explanation.

indylawi
Автор

I tried it the last couple days and I practically fell in love with the language. rustc and rust-analyzer are incredible! And the language itself is amazing once the light bulb switches on in the back of your brain. I'm pumped :D

Your channel is a gem by the way! Thanks!!

cheebadigga
Автор

Tbh I got like 50% of it as I've never coded in rust. I hope this would be of great value when we start rust in our project next month

StingSting
Автор

Wow I can really tell the quality of your content has gone up. Bravo! Good job

nicklesseos
Автор

Feel like I gotta watch this so many times. Rust is my first programming language I’m learning. I’m stubborn so I feel like I can do this!

Vibrationofawesome
Автор

Explained both simply and with details. Really good work!

grzegorzl
Автор

My problem with rust evangelist is when people say is not easy, and they inmeditialy start showing the incredible way rust is super optimal, wich is true but that doesn't alievate the learning curve.

I love your survival guide because you really show us how is it done

christianventes
Автор

Wow this was really well explained video of one of the central concepts of Rust!

aryanrahman
Автор

you are an amazing educator! i look forward to your Rust bootcamp 🦀

leokim
Автор

While it might not have been intentional this video does a great job convincing and explaining why Rust is so fast and memory efficient.

also when I started learning programming Lifetimes is how I imagined a garbage collector worked but was shocked to learn most garbage collector eat up runtime to cleanup your memory. Rust seems like a fun language to learn.

AadilValconi
Автор

0:42 this is what I did and now I'm trying it again and I'm getting it by watching your videos

dukkcc
Автор

You need to make a course, well explained🙌🏽.

zamokuhleshozi
Автор

Wow.... incredible concise and informative. The line illustrations really helped. I feel like cracking back into rust for some longer running data processing I have to do. Thank you again, looking forward to smart pointers video!

ZachariahCavazos
Автор

a small rusty island of understanding in this youtube, thank yu, keep going!

RichardWalterLanda