Dependency Injection in Rust. Managing application state &… | by Orion Kindel | Geek Culture | Medium
medium.com · 705 words · saved by 1 readers
Managing application state & side-effects in Plain English
Dependency Injection in Rust How to use traits to keep your code aloof, in plain english Orion Kindel 3 min read · Jun 2, 2021 -- 4 Listen Share Press enter or click to view image in full size Photo by Erik Mclean on Unsplash Who is this for? Rust developers who have a some experience with the language and are curious about taking the next step in robustness Non-Rust developers who are curious about Rust patterns What will be covered? Recap of traits and their use Using traits to isolate (and substitute) dependencies Why should you care? Dependency injection allows us to write code that treats
saved by
related reading
- Defining Shared Behavior with Traits - The Rust Programming Languagedoc.rust-lang.org
- A half-hour to learn Rustfasterthanli.me
- Patterns for Defensive Programming in Rust | corrode Rust Consultingcorrode.dev
- Generic Types, Traits, and Lifetimes - The Rust Programming Languagedoc.rust-lang.org
- References and Borrowing - The Rust Programming Languagedoc.rust-lang.org
- What is Ownership? - The Rust Programming Languagedoc.rust-lang.org
- Validating References with Lifetimes - The Rust Programming Languagedoc.rust-lang.org
- Master Hexagonal Architecture in Rusthowtocodeit.com
- Rust Language Cheat Sheetcheats.rs
- Methods - The Rust Programming Languagedoc.rust-lang.org
- A data race that doesn't compilecorentin-core.github.io
- Item 7: Use builders for complex types - Effective Rustlurklurk.org