Cantitate/Preț
Produs

Idiomatic Rust

Autor Brenden Matthews
en Limba Engleză Paperback – 8 oct 2024

Ceea ce diferențiază Idiomatic Rust de documentația oficială sau de manualele introductive este trecerea de la sintaxă la arhitectură. În timp ce resursele standard se concentrează pe mecanismele compilatorului, Brenden Matthews explică modul în care aceste mecanisme sunt orchestrate pentru a crea sisteme stabile. Considerăm că valoarea adăugată rezidă în catalogarea riguroasă a tiparelor de design, de la implementarea interfețelor fluide pentru API-uri, până la utilizarea structurilor de date imuabile pentru a elimina condițiile de cursă (data races). Abordarea diferă de Rust for Rustaceans prin faptul că este mai puțin abstractă și mult mai aplicabilă în fluxul de lucru zilnic; în loc să discecteze doar teoria profundă a ownership-ului, Matthews oferă soluții pragmatice pentru încapsularea datelor și inițializarea obiectelor complexe prin pattern-ul Builder. Reținem structura logică a cărții, care pornește de la blocurile de bază și evoluează spre concepte avansate precum metaprogramarea, macrocomenzile și corutinele. Un capitol esențial, adesea omis în alte lucrări de profil, este cel dedicat anti-tiparelor, oferind cititorului un ghid clar despre practicile care trebuie evitate pentru a menține mentenabilitatea codului pe termen lung. Experiența autorului în proiecte open-source de anvergură, precum Conky, se reflectă în calitatea exemplelor de cod care pot fi reutilizate direct în producție. Editura Manning Publications completează experiența de învățare oferind versiunea digitală inclusă, facilitând consultarea rapidă a referințelor tehnice.

Citește tot Restrânge

Preț: 31299 lei

Preț vechi: 39123 lei
-20%

Puncte Express: 469

Carte disponibilă

Livrare economică 21 mai-04 iunie
Livrare express 07-13 mai pentru 11127 lei


Specificații

ISBN-13: 9781633437463
ISBN-10: 1633437469
Pagini: 256
Dimensiuni: 190 x 227 x 17 mm
Greutate: 0.45 kg
Editura: Manning Publications

De ce să citești această carte

Recomandăm această carte programatorilor care au depășit etapa de începător și doresc să scrie cod care nu doar compilează, ci este „idiomatic” — eficient, lizibil și robust. Cititorul câștigă o înțelegere profundă a modului în care tiparele de design clasice se adaptează constrângerilor unice din Rust. Este un ghid practic pentru a construi biblioteci și aplicații la standarde profesionale, evitând în același timp capcanele comune ale limbajului.


Descriere

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. Purchase of the print book includes a free eBook in PDF and ePub formats from Manning Publications About the technology After you’re comfortable with Rust’s syntax and its uniquely-powerful compiler, there’s a whole new dimension to explore as you put it to use in real projects. How do you apply standard design patterns in Rust applications? Where and why should you use IntoIterator? Why do Rustaceans love the PhantomData type? This book answers these questions and many, many more. About the book Idiomatic Rust introduces the coding and design patterns you’ll need to take advantage of Rust’s unique language design. This book’s clear explanations and reusable code examples help you explore metaprogramming, build your own libraries, create fluent interfaces, and more. Along the way, you’ll learn how to write efficient, idiomatic Rust code that’s easy to maintain and evolve as you learn how the language works under the hood. What's inside • Creating delightful APIs • Applying Builder and other classic design patterns • Functional programming patterns • Rust anti-patterns About the reader For intermediate Rust programmers. About the author Brenden Matthews is a member of the Apache Software Foundation, creator of the system monitor Conky, and author of Code Like a Pro in Rust. The technical editor on this book was Alain M Couniot. Table of Contents PART 1 1 Rust-y patterns 2 Rust’s basic building blocks 3 Code flow PART 2 4 Introductory patterns 5 Design patterns: Beyond the basics 6 Designing a library PART 3 7 Using traits, generics, and structs for specialized tasks 8 State machines, coroutines, macros, and preludes PART 4 9 Immutability 10 Antipatterns A Installing Rust