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

May 4, 2017 · c# f# computer science

Introduction When I'm learning a new programming language, I usually like to do some coding exercises to get familiar with the various language features, and to get used to the syntax. Many of these exercises—or katas—are about implementing »

Playing with the composition of the Kleisli category in C#

April 19, 2017 · c# f# category-theory

Introduction Recently I learnt about an interesting concept in category theory called a Kleisli category. Let's look at a concrete example I took from this blog post (in his series about category theory) by Bartosz Milewski. We would like to »

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

April 17, 2017 · asp.net-core c# dependency-injection

With ASP.NET Core a new built-in lightweight Dependency Injection framework was introduced in the Microsoft.Extensions.DependencyInjection package, thus in ASP.NET Core applications we don't necessarily need an external library such as Ninject or Unity to do DI, »

Bulk updating document expiry in Couchbase

March 25, 2017 · couchbase

Introduction When using Couchbase, sometimes we want to update the expiry of all of the documents stored in a bucket. In my case it was in a project where initially we weren't sure how we want to handle document expiry »

Jumpstart F# web development: F# with Suave.IO on .NET Core

March 12, 2017 · f# suave .net-core

In a previous post we've seen how we can create a simple web application with Suave on the full .NET Framework. In the last post of the series we'll take a look at how we can do the same thing »

Jumpstart F# web development: F# with ASP.NET Core

February 26, 2017 · f# asp.net-core

In this third part of the series we'll look at how we can get started with developing an ASP.NET Core application using F#. This scenario is pretty straightforward, there are no extra hoops to jump over. In this post »

Jumpstart F# web development: F# with Suave.IO on classic .NET

February 11, 2017 · f# suave .net

In the second part of the series we take a look at how we can develop a web application using Sauve on the classic .NET Framework. Suave is a lightweight web framework and server, which was implemented in F# from »

Jumpstart F# web development: F# with ASP.NET on classic .NET

February 5, 2017 · asp.net f# web api

The first part of my series about jumstarting F# web development takes a look at probably the most straightforward-looking approach: write F# code using ASP.NET on the classic (full) .NET Framework. (If you're not familiar with the distinction between »

Series: Jumpstart F# web development

February 5, 2017 · asp.net f# suave

F# is a functional first general purpose programming language targeting the .NET Framework. Since .NET is a framework commonly used for web development (most often with C# and ASP.NET). And if we would like to do web development on »

Programmatically refreshing a browser tab from a Golang application

October 30, 2016 · golang websocket livereload

Introduction At work I've been working on a client-side Golang application (a command-line tool), which is used as part of the development toolchain we're using at the company. This application is used from the command line to upload packages to »