A Tale of Teaching Rust - Experiences and Insights

A Tale of Teaching Rust - Experiences and Insights

Rust via YouTube Direct link

Safety has an impact on security

22 of 30

22 of 30

Safety has an impact on security

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

A Tale of Teaching Rust - Experiences and Insights

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 The Pitch
  3. 3 Week 3: Explain why it matters
  4. 4 The Plan
  5. 5 What's the approach?
  6. 6 Suggestions: 1. Do examples beforehand 2. Treat rustc as a teacher 3. Don't fake it
  7. 7 Rust Playground The (New) Rust Book Rustlings Godbolt
  8. 8 The Class
  9. 9 All data has an owner Ownership can be moved Old owner can't use data Simple types can be copied
  10. 10 Aliasing XOR Mutability
  11. 11 Emphasize the rules Give lots of examples Show some complex cases
  12. 12 Sometimes you need code that's generic over lifetimes
  13. 13 Assignment: do the move semantics Rustlings exercises
  14. 14 Threads w/out data races
  15. 15 Introduce the key stdlib types: Arc, Rc, Mutex, RwLock
  16. 16 Make clear that Rust stops data races, not race conditions
  17. 17 Assignment: solve the Dining Philosophers problem
  18. 18 Safety & Security
  19. 19 Explain Safe Rust & Unsafe Rust
  20. 20 Unsafe Rust can't trust Safe Rust
  21. 21 Safety lies at the module boundary
  22. 22 Safety has an impact on security
  23. 23 Assignment: find a CVE that could have been stopped by Rust
  24. 24 The Results
  25. 25 Ended the series with a post-Rust survey
  26. 26 And the syntax was weird
  27. 27 Students felt Rust was really powerful
  28. 28 Students felt more confident than they did with C++
  29. 29 The ergonomics initiative will help new Rustaceans!
  30. 30 Conclusion

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.