Category

patterns

.NET
Premium

Vertical slices in ASP.NET MVC

Why? In ASP.NET MVC, applications are divided into horizontal layers, which is reflected in the project structure: * Controllers * Views * Models * Scripts * Style It’s a good idea to divide you application into logical parts. While the idea of horizontal slices might look like a...

best practices
Premium

Simple code: a sample app

In my last few posts I have hammered a lot on simplicity in software. In my first post (Simplicity in software [https://www.kenneth-truyers.net/2014/02/20/simplicity-in-software-what-you-see-is-not-what-you-get/] ) I explained what the difference is between easy and simple code (or hard and complex code)...

best practices
Premium

How to use Pure DI

In my previous posts I talked about how you can decrease dependency on external libraries and frameworks while making your code simpler (not easier, simpler). In this post I want to continue on the same thread and show some of the benefits of Pure DI...

.NET
Premium

How to ditch your ORM

In my previous post on how to simplify code by using composition [https://www.kenneth-truyers.net/?p=1104] I talked about how we can reduce complexity by removing an AOP-framework (or annotations-based programming). In this post I want to continue on the same line and...