Tips, tricks, design patterns, and secret features of Rust that will help you build stable and maintainable applications.
Whether you’re a Rust beginner or a pro, Idiomatic Rust will teach you to be a better Rust programmer. It introduces essential design patterns for Rust software with detailed explanations, and code samples that encourage you to get stuck in.
In Idiomatic Rust you’ll learn how to apply important design patterns including:
Fluent interfaces for creating delightful APIs
The Builder pattern to encapsulate data and perform initialization
Immutable data structures that help you avoid hard-to-debug data race conditions
Functional programming patterns
Anti-patterns and what not to do in Rust
Idiomatic Rust catalogs, documents, and describes both how classic design patterns work with Rust, and the new Rust-specific patterns that will help you master the language. Each pattern or best practice helps solve common programming problems and ensure your code is easy for others to understand. You’ll learn when to use each pattern—and when to break it! You’ll soon be producing higher-quality Rust code and higher-quality Rust software.
I’ve been going through this book after looking for something that would help me learn more about some of the common design patterns and practices used in Rust. I think for people who come from an OO, C++, Java, python, ect. background this book is especially helpful because the author gives side by side examples on how some of the ideas in OOP translate to Rust and it’s functional design patterns. (And how they don’t). Anyways, for me it’s been really helpful, I thought others might find it helpful as well.
[email protected] for programming books would like this