Design Patterns for Rust
39mIntermediate2023-11-20
Authors
Tim McNamara
Rust Software Architect and Author
Course details
Rust is an increasingly popular—and even loved—programming language, which has led to many developers learning the language. If you’ve learned the basics of Rust, this course with Tim McNamara shows you how to take what you’ve learned to the next level and apply Rust to solve real problems. Tim shows you how classic design patterns can be used in Rust to make the most of its type system, memory safety, and performance guarantees. He also covers some patterns unique to Rust, including creational patterns, behavioral patterns, and anti-patterns—where he shows you how to avoid bad practices with Rust design patterns.
Skills covered
RustSoftware DesignProgramming LanguagesOpen SourceSoftware DevelopmentOne-Off
Concepts
0. Introduction
- 01 - Apply design patterns to Rust
1. Creational Patterns
- 02 - Introducing creational patterns
- 03 - Default
- 04 - Typed constructors
- 05 - Builder
2. Behavioral Patterns
- 06 - Introducing behavioral patterns
- 07 - Newtype
- 08 - Guard
- 09 - Visitor
- 10 - Strategy
3. Anti-patterns
- 11 - Avoiding bad practices
- 12 - Overusing Clone
- 13 - Overusing Deref
Conclusion
- 14 - Next steps
Related courses
- Interaction Design: Design Patterns as Building Blocks
- RxJava: Design Patterns for Android Developers
- Android App Development: Design Patterns for Mobile Architecture
- iOS App Development: Design Patterns for Mobile Architecture
- Spring 6: Design Patterns
- Agentic AI Design Patterns for GenAI and Predictive AI
- C++ Design Patterns: Creational
- Interaction Design: Software and Web Design Patterns
Related learn paths
- Master Substance Designer and Substance Painter
- Get Ahead in iOS App Development
- Microservices Foundations Professional Certificate by Kong
- Master C++
- Prepare for the Google Associate Android Developer Certification
- Building Agentic AI Systems for Developers
- Exploring a Career in Interaction Design
- Improve Your UX Design Skills