Introduction

We looked at the principles and fundamentals of Clean Architecture in the first part of this three part series.

In this article we look at applying the Clean Architecture principles to create a simple Xamarin.Forms 5 mobile app.

Application Introduction — InkedUp

Now we have covered the academic side of Clean Architecture and looked at the fundamentals, let’s start having some fun by looking at applying it to a really simple application.

Lets take a really basic idea that has a little data involved and a simple use case. That will enable us to focus on the principles of Clean Architecture without getting too caught up in the functionality or technical details.

One of my passions beyond coding is collecting fountain pens. It’s a niche hobby but people who do it spend a lot of time and money on it. The general range of pens collectors go for are gold nib pens generally starting at around £400. The inks collectors use in their pens aren’t cheap either and a bottle of ink gets contaminated if a pen inked with a different ink is dipped in the bottle, changing the colour and consistency of the ink. Collectors keep track of which ink is in which pen by taking notes or, for the more technical, a spreadsheet.

If we take this as a simple problem to solve with software we have a couple of things we will probably store…