Everything is Functions
Two C# developers share their journey learning F#: what drew them to it, the resources that helped, and what surprised them, for the F# Advent Calendar 2022.
Read more →Two C# developers share their journey learning F#: what drew them to it, the resources that helped, and what surprised them, for the F# Advent Calendar 2022.
Read more →ASP.NET Core MVC treats non-nullable properties as implicitly [Required], but calling the validator yourself doesn't. Adjust your unit tests to match.
Read more →AssertConfigurationIsValid skips ReverseMap configurations in AutoMapper. Fix it with two distinct mappings or ValidateMemberList, and know when to use each.
Read more →C# structs can skip your constructor through default values, so preconditions you enforce there may never run. Here's why structs and classes behave differently.
Read more →Enhance the readability of your tests by customizing Fluent Assertions to your use cases!
Read more →AutoMapper lets you map a type to itself without creating a map, but it returns the same instance instead of a copy. Here's how to force a real copy and test it.
Read more →Thinking in relational tables leads to awkward wrapper entities in DDD models. A modeling kata shows why a document database can be a better fit for DDD projects.
Read more →C# has no built-in string repeat function. Compare four ways to repeat a string N times, with LINQ, StringBuilder, arrays, and Span, plus benchmark results.
Read more →How to make sure you are comparing apples to apples when benchmarking in .NET
Read more →Convert Results from one type to another using the new Map extension method!
Read more →