Learning the actor model through a real case
The actor model is old, simple and rarely used. Its two primitives, how it handles concurrency, and how I used it in Akka.NET to build a small monitoring tool for on-premise installations.
Tag
18 related posts.
The actor model is old, simple and rarely used. Its two primitives, how it handles concurrency, and how I used it in Akka.NET to build a small monitoring tool for on-premise installations.
Where validations belong when using MediatR and Clean Architecture, from controllers to use cases to entities, and how to handle UX needs without breaking the boundaries.
Testing is about confidence and money, not dogma. Know the whole spectrum of techniques so you can pick the ones your context needs, from where your tests start to golden masters on legacy code.
The small recipes I keep coming back to when doing TDD, from naming tests like business scenarios to building test data and keeping database tests fast.
What encapsulation really means, why it isn't the same as visibility, how objects retain state, and what that implies for anemic models and properties in C#.
BenchmarkDotNet measurements of direct, virtual, interface, abstract class, and reflection method calls in .NET, and what the nanosecond differences look like.
Why throwing NotImplementedException or returning null to get your first red in TDD defeats its purpose, and how to get a red that actually verifies the test.
Keep Web API actions testable by receiving request data as parameters, first with a custom value provider and then with a cleaner parameter binding attribute.
A tiny in-process event bus built on Reactive Extensions, and how exposing IObservable<T> lets you filter and compose events, using WPF notifications as the example.
How to write a PSTypeConverter and register it with a ps1xml file so PowerShell's Extended Type System converts a custom .NET type into DirectoryInfo.
Using .NET's System.IO.Path.IsPathRooted from PowerShell to detect whether a path parameter is relative and join it with the current directory.
Two regular expressions for Visual Studio's find and replace that strip every
Topshelf turns a console application into a Windows service you can debug, run on its own, or install with a single parameter, with far less hassle than the Visual Studio template.
What I liked and disliked about Exceptionless for exploring logs and exceptions, plus the API URL gotcha when hosting it on your own server.
How to tweak a Windows Store app's .csproj so every build outside Visual Studio produces an Appx package for sideloading, with a stable file name per platform.
The differences between portable class libraries, universal libraries, and shared source projects in .NET, and when each one fits for sharing code across platforms.
Fluent Migrator 1.4 silently ran no migrations because an older 1.3 migrate.exe on the PATH was being used instead of the matching version.
How to load sample data into a WPF ViewModel only at design time, so the XAML designer shows real-looking lists while you adjust styles and layout.