---
title: "Ken Bonny (@KenBonny) | Hashnode"
description: "Software craftsman specialising in Microsoft technology. Read the latest articles by Ken Bonny on Hashnode."
url: "https://hashnode.com/@KenBonny"
---

@KenBonny

# Ken Bonny

@KenBonny · Joined March 2021

Software craftsman specialising in Microsoft technology

[Website](https://kenbonny.net/)

## Comments

[The interface belongs to the application layer as your application needs to know it can generate a document/save the invoice somewhere. The implementation belongs to the infrastructure layer as this deals with external libraries and the filesystem. The basic idea is that your application logic (generating an invoice in this scenario) should not be directly tied to things that your app does not control or to separate things that change on a different timeframe. Let me clarify: writing to the file system does not change very often, so create something that can accept the format you want to save. As this implementation will not change very often, you won't need to worry about writing to the file system anymore for a long time. Then comes generating a pdf, this might change more often as you might want to update the library/plugin that creates the pdf. I've switched since writing this article from HTML > PDF generation to using the QuestPDF nuget. So this changes more than the filesystem writer, but less than the invoice generation. Also, this knows about the invoice, but the invoice does not need to know about the format it'll be saved in. So that is another reason why to put this in another class/place. Since it prepares the invoice to be written to the file system, I think it's appropriate to place these two implementations together in the infrastructure layer. Lastly, the invoice generation has changed the most over the years as this contains the most bugs (relevant to the other functionality), needed the most changes as I discovered more use cases. Since I split it up fairly nicely, I could make easy changes to the invoice generation without impacting the other implementations (too much). Remember that downstream modules (invoice flows to pdf generation which flows to file writer) might need to change when upstream modules change, but the inverse should not be true. P.S. I might have gone overboard with answering your question. I think I should start blogging again to get some thoughts off of my chest.](https://hashnode.com/posts/clean-architecture-applied-the-document-generator/6067458e43f7713266914189/comment/64b854cbce86fbcfe96f73a0#reply-64b8fcb8074089dc914ffcd8)

Reply · Article · Jul 20, 2023 · [Clean Architecture Applied](https://hashnode.com/posts/clean-architecture-applied-the-document-generator/6067458e43f7713266914189)

[You'll have to wait until it's in RC mode, which should be soon I think. The team releases one version of C# every year now on a (fairly) fixed date. It's normally near the end of the year.](https://hashnode.com/posts/introducing-csharp-10/608c4fa3dc886b4318004662/comment/60c655911679ed6f51a284d6#reply-60c8d23fbbd8c506819afcd9)

Reply · Article · Jun 15, 2021 · [Introducing C# 10](https://hashnode.com/posts/introducing-csharp-10/608c4fa3dc886b4318004662)

[I've updated my post with a link to yours.](https://hashnode.com/posts/introducing-csharp-10/608c4fa3dc886b4318004662/comment/60ab13a020d1f45ceb7f08ec#reply-60b8fd8fd7e1e779f671bc7c)

Reply · Article · Jun 3, 2021 · [Introducing C# 10](https://hashnode.com/posts/introducing-csharp-10/608c4fa3dc886b4318004662)

[Yeah you can. Give a little tribute link back here and I'll update mine with a link to your Chinese translation. Cool man.](https://hashnode.com/posts/introducing-csharp-10/608c4fa3dc886b4318004662/comment/60ab13a020d1f45ceb7f08ec#reply-60aba02061f5f47b572b5bc0)

Reply · Article · May 24, 2021 · [Introducing C# 10](https://hashnode.com/posts/introducing-csharp-10/608c4fa3dc886b4318004662)

[I dumped Chrome about a year ago for a combination of these two browsers. Brave allows for ad free and more private searching and Edge is a lot more memory friendly and has the Collections feature built in. I keep all my to read articles in there. Generally, I use Brave as my default browser for surfing the web and I keep Edge as the browser for all chat apps (such as gmail, whatsapp web and slack). If you want to see how different the browsers are, open the Task Manager (or Mac equivalent) and check how much CPU and memory each browser consumes. Load the same plugins and pages for best comparison.](https://hashnode.com/posts/i-used-the-web-browsers-edge-and-brave-exclusively-for-1-week-each-here-are-my-thoughts/609fc14c28ded1655c293e6d/comment/60a12197b66a0b15ebfc96fa)

Comment · Article · May 16, 2021 · [I used the web browsers Edge and Brave exclusively for 1 week each here are my thoughts](https://hashnode.com/posts/i-used-the-web-browsers-edge-and-brave-exclusively-for-1-week-each-here-are-my-thoughts/609fc14c28ded1655c293e6d)

[No idea, I got the image from Google image search. I searched for Creative Commons Licenses (I can reuse those images without copyright issues, iirc). So it's not my hoodie and I can't easily find the picture again. Sorry mate.](https://hashnode.com/posts/introducing-csharp-10/608c4fa3dc886b4318004662/comment/608c6dcea3716542f363e4bb#reply-608fa847cebc886374b84988)

Reply · Article · May 3, 2021 · [Introducing C# 10](https://hashnode.com/posts/introducing-csharp-10/608c4fa3dc886b4318004662)

[I'm not the best with networks, could you give me an idea how I would do this?](https://hashnode.com/posts/configure-ubiquiti-to-use-1-1-1-1-as-dns-server/606745b07f07b6328b5dd59f/comment/608ae327f80abf020dc6055e#reply-608bb0f3c5e433364ff51312)

Reply · Article · Apr 30, 2021 · [Configure Ubiquiti to use 1.1.1.1 as DNS server](https://hashnode.com/posts/configure-ubiquiti-to-use-1-1-1-1-as-dns-server/606745b07f07b6328b5dd59f)
