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:
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
Fantastic article by Pascal Hertleif on elegant APIs (some examples like extension traits and into option are taken from this article)
Pascal Hertleif’s idiomatic Rust libraries slides
A collection of software engineering techniques for effectively expressing intent with Rust. The Result examples where taken from here
Links to blogs, articles, videos, collections, etc. on all things idiomatic Rust