Posts

Azure Quickstart: Web Hosting with App Services

Image
There was a time when hosting a web application and the backing infrastructure was a long and rather expensive process. But with the advent of the cloud, this process has become much, much easier. This post is about setting up a web application in Azure. Within minutes, you can get your own web app up in Azure. Let's get started! Creating an Azure Account The first step is to create an account on Azure. To do that, you need the following: A Microsoft account A mobile phone (for identity verification) A credit card (for identity verification) The credit card details are needed only for identity verification purposes. It will not get charged unless you explicitly tell Azure to. Here is the registration link: https://azure.microsoft.com/en-us/free/ Congratulations, you now have an Azure account! Accessing the Azure Portal The Azure portal is the starting page in Azure. From it, you can create web apps, create other resources (there are a lot to choose from), view...

Deploying a Web Application to Local IIS using Visual Studio 2017

Image
In this post we are going to see how to deploy a web application on your development machine. The end goal is to have a web application running on the development machine outside of the context of Visual Studio and which is accessible to other devices on a local network. Install IIS Before we get started, we need to make sure that IIS is installed on our machine. Here are the steps to do that in Windows 10: Open the search dialog by pressing WinKey + S or by clicking the magnifying glass icon. Type in "Turn Windows features on or off" and click on the matching result. You'll see the "Windows Features" window (see sample image below), which has a list of folders with checkboxes beside them. Look for the folder "Internet Information Services" and make sure that the checkbox is filled with either a check or a black square. If it is, you're good to go. If the checkbox is empty, check it and click OK. Windows will install IIS for you. ...

Vertical Slices Application Design with MediatR: Part 2

Image
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!

Vertical Slices Application Design with MediatR: Part 1

Image
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. The second part of this series is now out: Vertical Slices Application Design with MediatR: Part 2

Entity Framework Search

Image
Search is a common requirement in most business applications. In this post we will examine searching in Entity Framework and create a query object that encapsulates the common functionality of filtering, sorting, and paging.

Top Tips for Creating Maintainable Software

Image
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.

Be Very, Very Lazy - A New Perspective on the Single Responsibility Principle

Image
Today I'm giving a tip on how we can remember to follow the Single Responsibility Principle. I'm sure many of you will be able to relate to this tip (at least I surely can!) which is: be very, very lazy!