0
نام کتاب
Design Patterns and Best Practices in Rust

Enhance your Rust skills by applying idiomatic approaches to real-world software design

Evan Williams

Paperback448 Pages
PublisherPackt
Edition1
LanguageEnglish
Year2026
ISBN‎ 9781836209478
886
A6909
انتخاب نوع چاپ:
جلد سخت
1,256,000ت
0
جلد نرم
1,126,000ت
0
طلق پاپکو و فنر
1,146,000ت
0
مجموع:
0تومان
کیفیت متن:اورجینال انتشارات
قطع:B5
رنگ صفحات:رنگی با کادر / تصویر
پشتیبانی در روزهای تعطیل!
ارسال به سراسر کشور

#Design_Patterns

#Rust

#Clone

#Rc

#TypeState

توضیحات

Write safer, more maintainable Rust code by identifying anti-patterns, applying idiomatic design patterns tailored to ownership, borrowing, and the type system, and learning when to adapt or avoid traditional solutions.


Key Features

  • Leverage traits, ownership, borrowing, and lifetimes to structure expressive, modular Rust code
  • Avoid common Rust anti-patterns and design pitfalls with clear, Rust-specific guidance
  • Design practical Rust applications using Rust-native and adapted design patterns


Book Description

Many Rust developers run into problems when they try to apply familiar object-oriented or cross-language patterns to Rust projects. These mismatches often lead to confusing compiler errors, awkward workarounds, or brittle code. This book helps you avoid those traps by thinking in Rust and applying idiomatic design patterns that embrace ownership, borrowing, and type safety.


The book begins with anti-patterns and common mistakes Rust developers often encounter, including misusing object-oriented thinking, over-relying on Clone, or treating the borrow checker as an obstacle. From there, you’ll explore how to rethink traditional design solutions for Rust, including creational, structural, and behavioral design patterns. You’ll also dive into architectural strategies, type-driven design, and Rust-specific techniques such as TypeState. The final chapter brings these ideas together into a design mindset rooted in idiomatic Rust.


By the end of this book, you’ll know how to avoid costly mistakes, apply effective patterns confidently, and design Rust applications that are clean, scalable, and reliable.


What you will learn

  • Design maintainable applications using idiomatic Rust patterns
  • Recognize Rust anti-patterns that lead to messy or inefficient code
  • Adapt creational, structural, and behavioral design patterns to Rust
  • Leverage the type system to catch logic errors at compile time
  • Structure code effectively with modules, traits, and clear interfaces
  • Work with ownership, borrowing, and the type system to simplify data handling
  • Implement functional techniques for clearer, expressive Rust code


Who this book is for

Rust developers ready to move beyond the basics and improve how they design and structure code will benefit from this book. If you're comfortable building simple applications and using tools like Cargo, this book will help you write cleaner, more idiomatic, and reliable software.


It’s ideal for those looking to understand which patterns work in Rust, how to avoid common traps, and how to tackle more complex, real-world projects with confidence.


Table of Contents

Part 1: Thinking in Rust

1.Why Is Rust Different?

2.Anti-Pattern: Designing for Object Orientation

3.Anti-Pattern: Using Clone and Rc Everywhere

4.Don't Fight the Borrow Checker

Part 2: Replacing Traditional Design Patterns

5.Creational Patterns: Making Things

6.Structural Patterns: Connecting and Aggregating Components

7.Behavioral Patterns 1: Taking Action

8.Behavioral Patterns 2: Keeping Track

Part 3: New Patterns for Rust

9.Architectural Patterns

10.Patterns That Leverage the Type System

11.Patterns from Functional Programming

12.Patterns Emerging from Rust's Core Features

13.Leaning into Rust


About the Author

Evan Williams is an accomplished software architect and engineering leader with decades of experience in systems programming and low-level development. His expertise spans multiple programming languages, including Rust, C/C++, Python, and Java. He has architected and delivered large-scale, high-performance systems across industries like travel, healthcare, and logistics. His passion for quality code, elegant design patterns, and mentoring engineers makes him well-suited to guide readers in mastering Rust's unique approach. Evan is a proud axolotl owner! He also enjoys writing poetry & stories. He has many musical instruments that he plays badly, but joyously.

دیدگاه خود را بنویسید
نظرات کاربران (0 دیدگاه)
نظری وجود ندارد.
کتاب های مشابه
Rust
1,426
Rust in Action
1,053,000 تومان
Rust
1,154
Rust Brain Teasers
452,000 تومان
Rust
1,519
Rust Programming Cookbook
1,012,000 تومان
Rust
1,073
Practical Rust Web Projects
698,000 تومان
Rust
1,387
Rust Atomics and Locks
684,000 تومان
Rust
1,354
Creative Projects for Rust Programmers
943,000 تومان
Rust
1,255
Rust Servers, Services, and Apps
824,000 تومان
Game Development
1,338
Game Development with Rust and WebAssembly
1,087,000 تومان
++C
752
Rust for C++ Developers
806,000 تومان
Rust
1,263
Command-Line Rust
949,000 تومان
قیمت
منصفانه
ارسال به
سراسر کشور
تضمین
کیفیت
پشتیبانی در
روزهای تعطیل
خرید امن
و آسان
آرشیو بزرگ
کتاب‌های تخصصی
هـر روز با بهتــرین و جــدیــدتـرین
کتاب های روز دنیا با ما همراه باشید
آدرس
پشتیبانی
مدیریت
ساعات پاسخگویی
درباره اسکای بوک
دسترسی های سریع
  • راهنمای خرید
  • راهنمای ارسال
  • سوالات متداول
  • قوانین و مقررات
  • وبلاگ
  • درباره ما
چاپ دیجیتال اسکای بوک. 2024-2022 ©