Design Patterns and Best Practices in Rust

There are two types of knowledge: things you remember, and things you know where to look up.” This book is a perfect example of the second type. I’ve been reading it over the last few weeks and, to be honest, it’s a bit hard to remember every single specific topic. In fact, it wouldn’t even be smart to memorize all of these things; what matters is knowing that they exist.

This book is not for newbies in software development (AI era or not). You already need to know what design patterns are, when to use them, and have a solid knowledge of the Rust language.

Every chapter provides examples. The book starts with anti-patterns and explains how to implement patterns in a Rust-specific way. You can’t just blindly rewrite code from other languages; you have to “think different” (sorry for the citation). For instance, that’s exactly why the Singleton is not a good choice in Rust.

My advice: buy the book, but don’t read it cover to cover. Use it when you need it (and you will, to quote Yoda this time).

Leave a Comment