Using single case union types for entity IDs in F# and make it work with Dapper

In C# it is a common and popular pattern to use strongly typed entity IDs instead of using integers or the likes for IDs on your entities. Strongly typed entity IDs is a great help when trying to prevent you from mixing an Order ID with an OrderLine ID. Andrew Lock recently wrote a series …

Users are in for a bad experience with the Mojave app restrictions

With the Mojave update to macOS, Apple has introduced a couple of restrictions on what your apps are allowed to do. If you are the developer of apps that are downloadable outside of the Apple App Store you need to be wary of these restrictions. The two new restrictions I will be talking about in …

Should you Fire a Coworker for Making an Honest Mistake?

A while back my hairdresser accidentally cut my ear. It was just a small cut and I hardly felt it but since cuts in ears have a tendency to bleed a lot my hairdresser felt really bad and almost starting crying. After having driven home with one hand on the steering wheel and the other …

Which is better for teaching? C# or F#

Recently I have had the pleasure of training a couple of colleagues in the wonders of programming. At work we use C# for most of our applications so naturally I started preparing my material in C#. I did not get very far before it occurred to me: This is going to be a long haul… …

Changing Work Item Templates on Team Foundation Service

Introduction If there is one thing that Team Foundation Service (TFS) does really well, it is the use of work items.  A work item can be a lot of different things.  For example, it can be a bug, a task, a user story, an epic, or a test case. It can even be a request …

Building C# 7.0 on On Premise TFS

At work we are running on premise Team Foundation Service 2015 (yeah, I know, right?). We have been struggling a bit to build C# 7.0 code on it. We installed Visual Studio 2017 on the build machine but it seemed that no matter what we did, we were only able to choose between “Visual Studio …

Be a responsible developer

The world is evolving around software. Software controls everything we do from toasting bread to sending people into space. Software enables people and companies. It is in fact really hard to think of a job or a task that does not include software in some way, at least in the Western hemisphere. That puts us, …

Setting up ASP.NET Core in Visual Studio 2017 with npm, webpack, and TypeScript: Part II

Example code on Github. This is the second part in my small series on ASP.NET Core and the coolest of the cool JavaScript libraries out there, except that they are probably already outdated by the time I finish writing this. In part I we took a look on how to install npm and webpack into …

Setting up ASP.NET Core in Visual Studio 2017 with npm, webpack, and TypeScript: Part I

Example code on Github. Things have been moving so fast in the last couple of years when it comes to web development.  The days of page refreshes on web sites are long gone.  The youngsters and hipsters want ajax, animations, spinners, and what not.  The JavaScript world has exploded with cool libraries and what is …