10 Reasons on why you’re not and should not use Clean Architecture in .NET

Bending the Clean Architecture Principles

Anthony Trad
6 min readOct 17, 2022
Clean Code Meme

Introduction

Clean Architecture has been around for years and if you’re a .NET developer, I am sure you’re familiar with it. People try to find the “best” way of writing clean, readable and reusable code. This is always the end goal and a lot of principles tried to achieve that.

Everybody had someone from his team that has discovered a new principle and technology and try to apply it everywhere. That’s how I learned about Clean Architecture. After some time, I started bragging about how I have worked with it everywhere which supposedly would showcase my experience.

However and even though there’s a lot of great examples of Clean Architecture, I don’t think Clean Architecture should be the way in most cases. But what’s worse is the current implementation of this one and how there’s a hidden standard that does not actually work.

Storytelling

Like everything, we don’t really care about the Clean Architecture itself but about the context and the problems around it.

Let’s say you got a new project in your company and you’ve just been promoted to a leading position. You want to guide your…

--

--

Anthony Trad
Anthony Trad

Written by Anthony Trad

Senior Software Engineer focused on .NET and the Cloud. Reconsidering major principles and patterns, ideas are my own.

Responses (10)