Performance with IDisposable, outside the box

Hello and welcome, Today I wanted to share with you a technique I used in the past, though by all means not an impressive feat. But first a little story about IDisposable and why I chose this approach. The IDisposable interface is mainly used as a way for the Gargabe Collection to release unmanaged resources, … Continue reading Performance with IDisposable, outside the box

Dependency Inversion and Dependency Injection

Hello and welcome, Across the posts, there has been the mention about something called Dependency Inversion or Dependency Injection. In this post, we will take a deeper look at what that actually means and what how it helps us. Dependency Inversion When we talk about dependency inversion we talk about how we structure our projects … Continue reading Dependency Inversion and Dependency Injection

Enums, Flags and Binary Literals

Hello and welcome, Today we're going to look at the enum value types, how they can be composed as flags and how C# 7 makes it easier for us to use and understand. We touched upon enums during the post The hidden side-effect of enums and values. Now we're going to have a more in-depth … Continue reading Enums, Flags and Binary Literals

FileSystem Syncher – Part 3

Hello and welcome, I thought it's just about the time we continue from where we were in the last part of this project. As always if you want to follow along, the source code from last time can be found here. The reason there is a new release and not just continuing from last time … Continue reading FileSystem Syncher – Part 3

Errors, the black sheep of the family

Hello and welcome, Today we will take a look at the so called "black sheep" of the family of development and those are errors, namely compiler errors and exceptions. The reason I consider them as black sheep is that they often get a bad reputation even though the reason why they exist is to keep … Continue reading Errors, the black sheep of the family

C# modifiers use and abuse – Part 2

Hello and welcome to part two of the use and abuse of the C# modifier keywords, Last time we looked at the access modifiers that apply to types (class, struct, and enums) and members (fields, methods, nested classes, etc.), this time we will have a look at some additional keyword modifiers that are used and … Continue reading C# modifiers use and abuse – Part 2

C# modifiers use and abuse – Part 1

Hello and welcome, It's been a while since my last post so I want to make it up by writing about something I noticed that happen in real life about the C# modifiers and my thoughts on them. What are the modifiers we're going to discuss? Well the list of modifiers can be found on … Continue reading C# modifiers use and abuse – Part 1

Logging Aspect what it is & where it is going

Hello, Intro Some might know of a library I did a few months ago about using PostSharp and designing a logging implementation following the Aspect Oriented Programming programming paradigm. For those who did now know about it, you can find the repository here. The project also came along with a few NuGet packages, but in … Continue reading Logging Aspect what it is & where it is going