Hexagonal architecture, test doubles, and traits
In this second article on testing rust web services, we will dive into setting up a base software architecture that simplifies writing unit tests.
Testing Rust web services (part 1): What is testing anyway?
In this first article on testing web services written in Rust, we will explore the purposes and type of tests we can employ to make sure our applications work as expected.
Safe representation of restricted values
In this article, I explore how we can use Rust's type system to restrict what values can be stored in a type, such only allowing floating point numbers between zero and one.
Dancing with the compiler: Rust and explicitness
One thing that often surprises newcomers to Rust is how verbose it can be. In this article, I explore how I typically work in tandem with the compiler to make my code more explicit and less error-prone.
Safe operations with typestate in Rust
A lesser known safety property of Rust is the ability to restrict what operations you can perform on a type given its internal state.
Safe JSON representations with Rust
You might know about Rust for its memory safety. In this article, I explore how other properties like Enum help you write applications with well-defined behaviors.