Author: Erik Dietrich
I'm a passionate software developer and active blogger. Read about me at my site.
Layered Architecture: Still a Solid Approach
August 7, 2018 1 minutes read Layered architecture gets a lot of flack. Even though it’s still the most prevalent architecture, we view it as an anti-pattern. It’s old, not...
Autofac: A Detailed Look Under the Hood at Its Code Quality
July 31, 2018 1 minutes read In case you haven’t seen it, I’ve been diving ever-further down the code research rabbit hole. Today it brings me to the Autofac codebase...
3 Design Patterns That Have Aged Poorly
July 10, 2018 1 minutes read Design patterns seem to be a controversial topic. On one hand, many developers seem to love them and treat the famous book by the Gang...
Declarative Programming in Depth
July 3, 2018 1 minutes read Most people that start programming learn to program in an imperative way. Shortly after, they will probably learn a declarative language too. Many developers...
Software Architecture: The 5 Patterns You Need to Know
June 26, 2018 1 minutes read When I was attending night school to become a programmer, I learned several design patterns: singleton, repository, factory, builder, decorator, etc. Design patterns give...
Continuing Our Clean Architecture Example in C#
June 19, 2018 1 minutes read After a somewhat long delay, it’s time to finally continue our series on clean architecture. This is the second post in the inner series...
Log4net vs NLog: A Comparison of How They Affect Codebases
June 12, 2018 1 minutes read Ah, the old “versus” Google search. Invariably, you’re in the research stage of some decision when you type this word into a search engine. ...
Use NDepend to Measure How SOLID Your Code Is
June 5, 2018 1 minutes read Not that long ago, we published a post defending the SOLID principles of object-oriented design. In today’s post, we take it a step further: we’re going...
Imperative Programming in Depth
May 29, 2018 1 minutes read Programming languages come in all shapes and sizes: interpreted vs. compiled, weak vs. strong typing, low-level vs. high-level, terse vs. expressive… There are many...
Separation of Concerns, Explained
May 22, 2018 2 minutes read Software development is a very young field, particularly when you compare it to, say, medicine or law. Despite this, there’s no shortage of wisdom...
What Makes a Codebase Acquirable?
May 15, 2018 1 minutes read What makes a codebase acquirable? This is the rare question that affects software developers, managers, and executives in a surprisingly similar way. And that’s...
A Look at .NET Core 2.1
May 8, 2018 6 minutes read The .NET Framework has certainly been through many changes since it was introduced by Microsoft in 2002. Arguably, .NET Core is the biggest change....
Null Is Evil. What’s the Best Alternative? Null.
May 1, 2018 1 minutes read “Null is evil.” If you’ve been a software developer for any reasonable length of time, I bet you’ve come across that statement several times....
In Defense of the SOLID Principles
April 24, 2018 2 minutes read From posts that politely offer their criticisms to others that outright deem them “for dummies,” it seems that bashing the SOLID principles is all...
Moq: A Detailed Look at Its Code Quality
April 17, 2018 7 minutes read In case you haven’t seen it, I’ve been doing a series of research-oriented posts for this blog. This is going to be in the...
On the Superiority of the Visual Studio Dark Theme
April 10, 2018 2 minutes read When I downloaded the newest version of NDepend, something wonderful awaited me. Was it support for the latest .NET Core version? The addition of...
C# 8.0 Features: A Final Glimpse Of The Future
April 3, 2018 1 minutes read It was not that long ago when we published our first post about the future of C# 8.0 and the probable features it’s getting....
Starting A Clean Architecture Example in C#
March 27, 2018 1 minutes read It’s time for the second part of our series about clean architecture. As promised in the first post, we’re going to show you a...
Functional C# Improves Your Design Without Making Your Code Cleaner, Exactly
March 20, 2018 2 minutes read Today I offer another one of the code research posts we’ve been doing. If you want more backstory on the series, check out the...
C# Immutable Types: Understanding the Attraction
March 13, 2018 2 minutes read As I’m sure you’re aware, the word immutable means “unchanging.” So, C# immutable types obviously refers to a C# type that can’t change. What...
CQRS: Understanding From First Principles
March 6, 2018 1 minutes read There seems to be no end to the choices you have for architecture when building an application. You don’t want to fall victim to cargo...
How to Measure Lines of Code? Let’s Count the Ways
February 27, 2018 1 minutes read There are a few ways to count lines of code, and they each have their advantages and disadvantages. Much of the differences come down...
Your Guide to Winning Arguments About Code
February 20, 2018 3 minutes read The whole “tabs versus spaces” thing occupies sort of an iconic position in the programmer world. It represents the impossibility of winning arguments that...
Functional Programming Makes Your Code Not OO…And That’s It
February 13, 2018 2 minutes read Over the course of the fall and winter, I’ve been gaining momentum with code research posts. Today, I bring that momentum to bear on...
C# 8.0 Features: Another Glimpse of the Future
February 6, 2018 1 minutes read About two months ago, we talked about some of the (probable) features we’ll be getting with C# 8.0. The post was well received and...
An Introduction to Clean Architecture
January 30, 2018 2 minutes read It seems to me that the topic of software architecture has attracted a lot of interest in the last few years. And among many...
Unit Tests Correlate With Desirable Codebase Properties
January 23, 2018 2 minutes read Today, I give you the third post in a series about how unit tests affect codebases. The first one wound up getting a lot...
Value Objects: A Tool for Self-Documented Code and Fewer Errors
January 16, 2018 1 minutes read Have you ever heard of value objects? I bet you have. Even though they’re talked about a lot less than I’d like, they’re still...
Delegation As a Developer: Building the Next You
January 9, 2018 3 minutes read “I love me some me!” Yes, there’s more than just an ounce of truth in that statement said by the great NFL receiver...
Cargo Cult Programming Is the Art of Programming by Coincidence
December 28, 2017 2 minutes read I first learned about cargo cult programming a few years ago. I remember thinking back then, “What a strange name for a programming-related concept.”...