Goat Review

Verifying code against architecture with Metalama

In my previous article, I demonstrated how Metalama can generate boilerplate code during compilation, automating the repetitive yet necessary tasks. But Metalama doesn’t stop there. If Metalama were a goat, its second horn would be its ability to validate source code against architectural rules — ensuring that your code stays

Stop exposing your MediatR command/query in minimal API

MediatR has become a popular tool for implementing the mediator pattern in .NET applications, allowing developers to decouple request handlers from their senders. While MediatR offers numerous benefits, exposing its commands directly in APIs can lead to unexpected complications. In this article, we'll explore the potential issues that

Avoiding Repetitive Code With Metalama

If you write code in C#, you're probably also writing repetitive code against your will. Think of caching, security, precondition checking, exception handling, design patterns like Builder or Memento, deep cloning, INotifyPropertyChanged... In this article, I'll introduce Metalama, a new meta-programming framework my team and I

Evolving Existing Code through TDD: A Password Case Study

In Week 4 of our Summer Craft Book, which Yann Courtel and I created, we focus on Test-Driven Development with the exercise below. The Initial Challenge In this exercise, our task was to create a program that validates a password following Test-Driven Development cycles based on the following criteria: * At

.NET User Secrets Demystified: Practical Usage and Best Practices

Learn how to effectively use .NET User Secrets to secure sensitive data in your development process. This comprehensive guide covers initialization, management, and best practices.

Goat Review © 2026