The Rust Survival Guide

132,501
0
Published 2023-11-11
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.

FREE Rust cheat sheet: letsgetrusty.com/cheatsheet

Rust strings explained:    • Strings in Rust FINALLY EXPLAINED!  
Rust strings explained 2:    • All Rust string types explained  

Chapters:
0:00 Intro
0:45 Memory Management
2:18 Ownership
5:19 Borrowing
10:02 Lifetimes
11:53 Conclusion

All Comments (21)
  • @user-hn1cy5ee5l
    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.
  • @steamer2k319
    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.
  • @forestcat512
    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
  • @mikhalpalych
    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
  • @Sergio-ds3sq
    You explain stuff really well bro, thank you!!
  • @indylawi5021
    Thank you for highlighting these Rust essentials in memory management as well as your clear explanation.
  • @grzegorzl4825
    Explained both simply and with details. Really good work!
  • @DogeOfWar
    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!
  • @cheebadigga4092
    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!!
  • @nicklesseos
    Wow I can really tell the quality of your content has gone up. Bravo! Good job
  • @dakata2416
    Rust players when they stumble upon this video...
  • @ZachariahCavazos
    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!
  • @StingSting844
    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
  • @leokim4943
    you are an amazing educator! i look forward to your Rust bootcamp 🦀
  • @aryanrahman3212
    Wow this was really well explained video of one of the central concepts of Rust!
  • @piguyalamode164
    11:04 another way to phrase this is that the lifetime annotations here tell the borrow checker that a and b must live at least as long as the returned value needs to live.
  • a small rusty island of understanding in this youtube, thank yu, keep going!