Idiomatic Rust
HomeSlides

Idiomatic Rust

Stefan Baumgartner

Stefan on Mastodon

More on Rust, Workshop, Slides

Rust is undeniably syntax-heavy. After all, there’s a lot of intent to express, and Rust wants you to be explicit. Still, Rust is a very elegant language. This might not be so obvious at first, as Rust has borrowed elements from a lot of precursors that help you navigating when you start, but can be false friends in the long run, resulting in bloated code, unnecessary complexity, and hard-to-use APIs.

In this workshop, we’re going to learn what Rust has to offer to create code that is a delight to read and follow, easy to use, and plays along nicely with all the other libraries out there.

We learn about:

  • Tooling, Formatting
  • Naming conventions
  • Effective use of existing syntax
  • Important traits to implement
  • Conversions
  • Relying on enums
  • Proper error handling
  • Working with and loving Iterators
  • Extension traits
  • Builders
  • Typestate programming

Each chapter concludes with tasks for the audience.

Target audience: Folks who already implemented their first Rust programs and know the foundations well enough.

Expected workshop duration: Half-day, full-day, 1.5-day

Resources

Public presentations

More articles on Rust

Stay up to date!

3-4 updates per month, no tracking, spam-free, hand-crafted. Our newsletter gives you links, updates on oida.dev, conference talks, coding soundtracks, and much more.