Rust Lang Course 2021 - Guessing Game

Опубликовано: 28 Сентябрь 2024
на канале: Jeremy Chone
3,244
166

The #RustLang #Course 2021 Chapter 2 video, the guessing game.

Help support this channel:   / jeremychone  

In this video series, we are learning about #Rust by the official rust book. One video per chapter.

- Chapter 1 - Setup & Hello World -    • Rust Lang Course 2021 - Setup & Hello...  
- Chapter 3 - Concepts -    • Rust Lang Course 2021 - Overview - Ty...   (variables, primitive types, if/else/for loops)

Official Rust Book Chapter 2 link: https://doc.rust-lang.org/book/ch02-0...

=== What we learn in this chapter:
- Rust number types and their default
- First exposure to #Rust modules and the std::io module to read input from the terminal
- Rust Variable Shadowing
- Rust Loop keyword
- Rust if/else
- First exposure to #Rust match keyword

=== Content:
00:00 - Intro & Setup
02:11 - The Plan
03:04 - Variable Secret
04:03 - Number Types
05:45 - Mutability recap
06:22 - Ask the user
07:45 - First intro to module std::io
08:29 - Rust naming conventions
09:22 - Read user input io:stdin().read_line(&mut guess)
12:46 - Break & Understand
14:20 - Parse string to number
17:10 - Variable Shadowing
18:46 - If / Else - You Win, You Loose
19:28 - Loop
20:38 - Match
23:19 - Random with rand
26:35 - Run it all
27:09 - Conclusion and next episode

Other popular Rust Programming videos:

- Desktop Application Code Rust Programming template full Overview:    • Building Awesome Desktop App with Rus...  
- Tauri Quick Introduction (Desktop App wit Rust Programming):    • Rust Tauri 1.0 - Quick Intro - Rust D...  
- Rust Web App tutorials series:    • Rust Web App - 1/3 - Data Access  
- Rust Bevy Full Tutorial - Game Development with Rust:    • Rust Bevy Full Tutorial - Game Develo...  
- Rust for Java Developers series:    • Rust for Java Developers 1/3 - Introd...  

Playlists:

- Rust For Desktop App:    • JC - Rust Programming for Desktop App  
- Everything Rust Programming - Tutorials, Courses, Tips, Examples:    • JC - Rust - Everything Rust Programmi...  
- Rust Programming for Web Development:    • JC - Rust Programming for Web Develop...  
- Rust Courses:    • Rust Course 2021 by the book | RustLang  
- Furst for Java Developers:    • Rust for Java Developers