Mark Vincze

Software Developer

c#

Automated, portable code style checking in .NET Core projects

c# .net-core linting

A quick introduction to setting up automated code style checking for .NET Core projects with StyleCopAnalyzers and editorconfig.


Tear down your ASP.NET Core api between integration tests

c# couchbase asp.net-core testing integration-testing quartz.net

Static state in an ASP.NET Core application can cause problems when running subsequent integration tests. In this post we take a look at how to solve this.


A data model exercise in two languages, part 2: F#

c# computer science f#

Second part of an exercise illustrating how F# can provide an elegant solution to some of the challenges we face when designing data models in OO languages.


A data model exercise in two languages, part 1: C#

c# computer science f#

A simple data model exercise illustrating some challenges we encounter when designing domain models in object oriented programming languages.


Playing with the composition of the Kleisli category in C#

c# f# category-theory

Taking a look at how the composition of the Kleisli category can be implemented in C#, and what are the limitations we have to face in type inference.


Two gotchas with scoped and singleton dependencies in ASP.NET Core

c# asp.net-core dependency-injection

Two possible problems (and their solutions) we can run into when registering objects with various lifecycles with the DI container of ASP.NET Core.


How to validate action parameters with DataAnnotation attributes?

asp.net c# .net-core asp.net-core

A simple approach to evaluate DataAnnotation validation attributes not only on model properties, but on the action method parameters as well.


ASP.NET Core 1.0: hints to get started

asp.net c# .net .net-core asp.net-core dnx

Some random tips and tricks I have learnt during spending a couple of weeks with getting started with ASP.NET Core.


Simple client-side compression for Couchbase - with benchmarks

c# .net couchbase

Implementing client-side compression for Couchbase is pretty simple. In this post we take a look at what this costs us and how significant the benefits are.


Couchbase Server: tips for troubleshooting issues

c# .net couchbase

This blog post describes some quirks and issues with Couchbase Server which can make getting started with it more difficult and troublesome.


Back to basics: Dictionary part 4, custom GetHashCode

c# .net basics computer science


Back to basics: Dictionary part 3, built-in GetHashCode

c# .net basics computer science

GetHashCode plays an important part in the implementation of a hash map. We should be familiar with it when using a custom type as a Dictionary key.


Back to basics: Dictionary part 2, .NET implementation

c# .net basics computer science

A look under the hood of Dictionary<TKey, TValue>, an overview of how the hash map data structure has been implemented in the .NET Framework.


Back to basics: Dictionary part 1, hash tables

c# .net basics computer science

An introduction to how a hash table works, which is the foundation of the key-value stores implemented in many environments.


How to store state during SpecFlow tests?

visual studio specflow c# .net

There are different ways to store state during SpecFlow tests, and all of them have benefits and drawbacks.