Dev Corner

Diving deep into the code to solve your challenges and offer up expert tips
  • Category

  • Author

End-to-end distributed tracing with Zipkin

Diagnosing errors in production systems can be a challenge. Diagnosing errors in distributed systems can quickly become a nightmare. With a single application, a developer can introduce logs to capture exception messages and stack traces, even publish to central...

How to run native Docker containers on WSL 2

TL;DR: Together, Docker Desktop and Windows Subsystem for Linux 2 provide a great experience for developing with Linux containers on Windows with a fast, efficient, and lightweight virtual machine. Docker Desktop uses WSL 2 enhancements for faster boot times and...

Vertical Slice Example Updated to .NET 5

With the release of .NET 5, I wanted to update my Vertical Slice code example (Contoso University) to .NET 5, as well as leverage all the C# 9 goodness. The migration itself was very simple, but updating the dependencies along the way proved to be a bit more of a...

Streamlining your automated tests, Pt. 2

In our last article, we looked at how the builder pattern increases the readability of our tests while simultaneously decoupling us from the construction details around the objects we’re testing. Sometimes this pattern by itself isn’t sufficient. Occasionally, we need...

Streamlining your automated tests, Pt 1

TL;DR Writing automated tests for your complex scenarios is important, but it’s easy for the tests to become difficult for other developers (including your 6-month future-self) to read and understand. Using a builder method for the “happy path” that returns an object...

Testing done right with Vertical Slice Architecture

When exploring best practices for automated testing and Test-Driven Development (TDD), we often refer to the Test Pyramid. This diagram describes the different kinds of tests, and the relative number of them we should aim for. The general idea is that different tests...