코딩_Coding_Dev책_정리/Rust_Coding_Book

eBook) Effective Rust | David Drysdale

내인생PLUS 2024. 5. 3. 18:26
728x90

David Drysdale
Effective Rust



https://www.amazon.com/-/ko/gp/aw/d/B0D1DTFPSZ/ref=tmm_kin_swatch_0?ie=UTF8&qid=&sr=

Effective Rust

Effective Rust

www.amazon.com




러스트 고급 과정




책 소개
Book description
Rust's popularity is growing, due in part to features like memory safety, type safety, and thread safety. But these same elements can also make learning Rust a challenge, even for experienced programmers. This practical guide helps you make the transition to writing idiomatic Rust—while also making full use of Rust's type system, safety guarantees, and burgeoning ecosystem.

If you're a software engineer who has experience with an existing compiled language, or if you've struggled to convert a basic understanding of Rust syntax into working programs, this book is for you. By focusing on the conceptual differences between Rust and other compiled languages, and by providing specific recommendations that programmers can easily follow, Effective Rust will soon have you writing fluent Rust, not just badly translated C++.

Understand the structure of Rust's type system
Learn Rust idioms for error handling, iteration, and more
Discover how to work with Rust's crate ecosystem
Use Rust's type system to express your design
Win fights with the borrow checker
Build a robust project that takes full advantage of the Rust tooling ecosystem




목차-
https://www.oreilly.com/library/view/effective-rust/9781098151393/

Effective Rust

Rust's popularity is growing, due in part to features like memory safety, type safety, and thread safety. But these same elements can also make learning Rust a challenge, even for … - Selection from Effective Rust [Book]

www.oreilly.com





Effective Rust
Effective Rust
by David Drysdale
Released April 2024
Publisher(s): O'Reilly Media, Inc.
ISBN: 9781098151409
Read it now on the O’Reilly learning platform with a 10-day free trial.

O’Reilly members get unlimited access to books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.

BUY ON AMAZON BUY ON EBOOKS.COM START FREE TRIAL
Book description
Rust's popularity is growing, due in part to features like memory safety, type safety, and thread safety. But these same elements can also make learning Rust a challenge, even for experienced programmers. This practical guide helps you make the transition to writing idiomatic Rust—while also making full use of Rust's type system, safety guarantees, and burgeoning ecosystem.

If you're a software engineer who has experience with an existing compiled language, or if you've struggled to convert a basic understanding of Rust syntax into working programs, this book is for you. By focusing on the conceptual differences between Rust and other compiled languages, and by providing specific recommendations that programmers can easily follow, Effective Rust will soon have you writing fluent Rust, not just badly translated C++.

Understand the structure of Rust's type system
Learn Rust idioms for error handling, iteration, and more
Discover how to work with Rust's crate ecosystem
Use Rust's type system to express your design
Win fights with the borrow checker
Build a robust project that takes full advantage of the Rust tooling ecosystem
Publisher resources
View/Submit Errata

Table of contentsProduct information
Table of contents

Preface
Who This Book Is For
Rust Version
Navigating This Book
Conventions Used in This Book
O’Reilly Online Learning
How to Contact Us
Acknowledgments


1. Types
Item 1: Use the type system to express your data structures
Fundamental Types
Aggregate Types
enums
enums with Fields
Ubiquitous enum Types
Item 2: Use the type system to express common behavior
Functions and Methods
Function Pointers
Closures
Traits
Item 3: Prefer Option and Result transforms over explicit match expressions
Things to Remember
Item 4: Prefer idiomatic Error types
The Error Trait
Minimal Errors
Nested Errors
Trait Objects
Libraries Versus Applications
Things to Remember
Item 5: Understand type conversions
User-Defined Type Conversions
Casts
Coercion
Item 6: Embrace the newtype pattern
Bypassing the Orphan Rule for Traits
Newtype Limitations
Item 7: Use builders for complex types
Item 8: Familiarize yourself with reference and pointer types
Rust References
Pointer Traits
Fat Pointer Types
More Pointer Traits
Smart Pointer Types
Item 9: Consider using iterator transforms instead of explicit loops
Iterator Traits
Iterator Transforms
Iterator Consumers
Building Collections from Result Values
Loop Transformation
When Explicit Is Better


2. Traits
Item 10: Familiarize yourself with standard traits
Common Standard Traits
Standard Traits Covered Elsewhere
Operator Overloads
Summary
Item 11: Implement the Drop trait for RAII patterns
Item 12: Understand the trade-offs between generics and trait objects
Generics
Trait Objects
Basic Comparisons
More Trait Bounds
Trait Object Safety
Trade-Offs
Item 13: Use default implementations to minimize required trait methods


3. Concepts
Item 14: Understand lifetimes
Introduction to the Stack
Evolution of Lifetimes
Scope of a Lifetime
Algebra of Lifetimes
Lifetime Elision Rules
The 'static Lifetime
Lifetimes and the Heap
Lifetimes in Data Structures
Anonymous Lifetimes
Things to Remember
Item 15: Understand the borrow checker
Access Control
Borrow Rules
Owner Operations
Winning Fights Against the Borrow Checker
Things to Remember
Item 16: Avoid writing unsafe code
Item 17: Be wary of shared-state parallelism
Data Races
Deadlocks
Advice
Item 18: Don’t panic
Item 19: Avoid reflection
Upcasting in Future Versions of Rust
Item 20: Avoid the temptation to over-optimize
Data Structures and Allocation
Who’s Afraid of the Big Bad Copy?
References and Smart Pointers


4. Dependencies
Item 21: Understand what semantic versioning promises


등등




한글 번역본
이펙티브 러스트 : 효과적인 러스트 코드 활용을 위한 35가지 방법 [ 스마트한 PDF 필기 기능을 사용해 보세요! ]
데이비드 드라이스데일 저 / 남기혁 역 | 한빛미디어 | 2024년 10월 14일  
https://m.yes24.com/p/135169443

[전자책] 이펙티브 러스트 - 예스24

가장 안전하고 효율적인 프로그래밍 언어러스트의 비밀을 파헤치다러스트는 강력한 메모리 안정성, 타입 안정성 그리고 뛰어난 성능 덕분에 개발자들 사이에서 인기 있는 언어로 자리 잡았다.

m.yes24.com








이 책을 보기전 읽어야 할 책

eBook, Rust2021Edition)Programming Rust: Fast, Safe Systems Development
- https://economiceco.tistory.com/m/11980

(eBook, Rust2021Edition)Programming Rust: Fast, Safe Systems Development

Covers Rust 2021 Edition 국내(한국에 나온) 러스트 책 eBook나오면 링크 자리 종이책) 프로그래밍 러스트 : 빠르고 안전한 시스템 개발 [ 개정판 ] 짐 블랜디,제이슨 오렌도프,리어노라 틴달 저 / 조성만

economiceco.tistory.com










반응형