Simplify your code and focus on your features with ASP.NET Core and MediatR

Submitted by Jon Hilton

Talk Abstract:

We've all experienced that moment when your boss/customer calls you and says;

"This is just a small change, I can't imagine it would take more than half an hour or so"

And your heart sinks, because you know what these "small" tweaks actually entail.

You have to find the code, which means navigating all the "layers" of your application.

If you're lucky, you can locate the relevant ASP.NET controller, but you know that's only the start.

3 hours later, you're knee-deep in your Data Access Layer, desperately trying to figure out where this "small tweak" needs to be made, wondering if it's lunchtime yet.

It doesn't have to be this way!

You can skip a lot of this pain by leveraging the idea of "vertical slices".

When you build and architect your application around individual features, magical things start to happen;

You always know exactly where to look for the code that makes any given feature tick

You can use tests to be confident your feature actually does what the user/customer wants it to do (imagine that!)

You get to work with (and write) simple code

You can get all your work done in a few hours and bunk off early (OK, maybe not, but we can dream...)

So join me as we explore what vertical slices are, how you can approach any feature and specific tips and techniques for making this come to life using ASP.NET Core and MediatR.

About Jon Hilton

By day I work with the enthusiastic and supportive team at Remote where we build custom software for purpose-driven teams.

The aim is to help our customers make greater impact with help from the software we can build for them.

By night I focus on helping ASP.NET developers (new and old) via my site.

Most recently I've been exploring the intersection of React.js and ASP.NET Core and learning how to really optimise the process of turning ideas into working software so we can get to the good stuff, spend less time fighting the code and more time working on interesting features.