OJ Develops

Thoughts, tips, and tricks on software development. .NET | C# | Azure

Vertical Slices Application Design with MediatR: Part 2

03 September 2017

This is the second post of my two-part series about designing applications using vertical slices and how the open-source library MediatR can facilitate this design. In the first post we talked about the vertical slices design and how it addresses some of the problems in traditional database table-centric designs. In this post we will see how we can implement a vertical slices design using the open source library MediatR. Put on your programmer hat as we'll dive into some code!

Read More

Vertical Slices Application Design with MediatR: Part 1

27 August 2017

This is the first of my two-part series about designing applications using vertical slices and how the open-source library MediatR can facilitate this design. In this post we will talk about the concept of vertical slices and in the next post we will look at some sample code that implements this design.

Read More

Top Tips for Creating Maintainable Software

10 June 2017

If you write code on a regular basis, then no doubt you have come across code that is difficult to understand and, consequently, difficult to change. If you're like me, then you will most probably have written bad code yourself! The good news is that writing good code doesn't have to be a complicated exercise. Today I'm going to share some principles and practices that you can use to write maintainable software.

Read More

Design Pattern Spotlight: Adapter Pattern

02 June 2016

The Adapter Pattern's intent is "convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces" (taken from the Design Patterns book). That statement seems intimidating at first, but the core concept is really simple. In fact, I won't be surprised if you are already using this pattern in your application. Let's talk more about it below.

Read More

Some Tips on Organizing Code

23 May 2016

One of the signposts pointing to clean code is well-organized code files. Contrary to popular belief, aesthetics and organization are important when it comes to writing code, because having organized and structured code improves readability. A piece of code written once will get read multiple times, so it's worth the time to put a little more effort into improving the code's readability. In this post I will be sharing some tips on how to make more organized and readable.

Read More