Skip to content

Sponsor: Do you build complex software systems? See how NServiceBus makes it easier to design, build, and manage software systems that use message queues to achieve loose coupling. Get started for free.

Learn more about Software Architecture & Design.
Join thousands of developers getting weekly updates to increase your understanding of software architecture and design concepts.


Follow @CodeOpinion

Derek Comartin

Avoiding the NullReferenceException

Easily, by a landslide, the most common exception I’ve run into in C# is the NullReferenceException.  Second would be an InvalidOperationException.  But NullReferenceException wins as most occurred exception hands down.  This quick post shows how we can start avoiding the NullReferenceException. I despise null.  I despise null checks.  What if there was a way to get rid of null checks?  Luckily there is. Last year I was at a talk by Reid Evans, Getting Started with Functional Programming in F#.   He touched on it and I’ve been using an implementation in C# ever since. Option an option type or maybe type is a polymorphic type that represents… Read More »Avoiding the NullReferenceException

Brighter MySQL Command Store

I’ve been wanting to explore Brighter for awhile, probably over a year.  I figured I’d try something new this time around and actually explore it by contributing to the project itself.  I noticed there were no Command and Message Stores yet supporting MySQL.  Turns out it was pretty straight forward to port the Sqlite Message & Command over to MySQL.  So that’s what I did, created a Brighter MySQL Command Store. Brighter First, if you’re unfamiliar with Brighter, here’s a quick description: This project is a Command Processor & Dispatcher implementation that can be used as a lightweight library in other… Read More »Brighter MySQL Command Store

Explore DDD 2017 Review

I just returned from Denver, Colorado, where the first Explore DDD conference was held.  I originally heard about it earlier in the year on Twitter via the organizer Paul Rayner and decided to submit a couple abstracts for the CFP. Fat Controller CQRS Diet The talk that was accepted and which I delivered on Friday morning was my Fat Controller CQRS Diet talk.  The talk revolves around trying to decouple your application from top I/O layer or framework.  More info on the talk can be found in my series of blog posts as well as a episode of Software Engineering Daily… Read More »Explore DDD 2017 Review