Rust Tips and Tricks

Rust Tips and Tricks

38mBeginner2022-05-04

Authors

Marcus Willock

Marcus Willock

Senior Software Engineer and Content Creator

Course details

Over the last few years, tech industry giants like Google, AWS, Huawei, and Microsoft have all become increasingly interested in Rust. As a result, Rust is now one of the most important programming languages for your toolbox, especially if you’re in the early stages of your career as a developer. In this course, instructor Marcus Willock walks you through his favorite tips and tricks to get the most out of the Rust experience.

Discover the versatility and performance power of Rust, exploring some of the lesser-known features of the Rust Standard Library. Learn how to boost your productivity with these beginner-friendly tools as you build your speed and confidence, and upskill as a developer. Along the way, Marcus gives step-by-step lessons for using macros such as todo, unreachable, dbg, and env, as well as Option types, release builds, derivable traits, and more.

Skills covered

RustTips, Tricks, & TechniquesProgramming LanguagesOpen SourceSoftware Development

Concepts

Introduction

  • Get Rust tips and tricks
  • How to use the exercise files

Macros

  • TODO - Karaoke version
  • Unreachable - Programmer vs. compiler
  • dbg - Debugging homework
  • env vs. option env - Checking logging levels

Matching My Options

  • How to think about Option
  • Tips on how to act on Option
  • Match tips

Quick Wins

  • Create multiple programs in one project
  • Speed up your code with release builds
  • Get command line input
  • What is derivable
  • The fastest way to get to the Rust Docs

Conclusion

  • Next steps
40,000 Toman