.NET, AI

Implementing Simple Neural Network in C#

Code that accompanies this article can be downloaded here. Sometime in the last few weeks, while I was writing the explanations for the way in which neural networks learn and backpropagation algorithm, I realized how I never tried to implement these algorithms in one of the programming languages. Then it struck me that I've never tried to implement the whole… Continue reading Implementing Simple Neural Network in C#

.NET, Design

Abolishing Switch-Case Statement and Pattern Matching in C# 7.0

There are many arguments on the web regarding the switch-case statement. It seems that half of the programmers think that switch-case statement is actually an anti-pattern, and other half claims there are in fact use cases for this concept. Usually, the second group tries to prove a point that in some simple situations it is alright… Continue reading Abolishing Switch-Case Statement and Pattern Matching in C# 7.0

.NET, Design

Different ways to implement Singleton in .NET (and make people hate you along the way)

The Singleton Pattern is probably the most well-known design patterns that came out of Gang of Four's book Design Patterns: Elements of Reusable Object-Oriented Software. This pattern is one of the creational patterns, and basically, it ensures that only one object of a particular class is created and shared among other members of the system.