Programming Protips

Small posts meant to document the solutions to problems I've encountered while writing code and deploying apps.

Custom sorting functions and algorithms in F#

Implementing custom sorting algorithms is easy in C#, but not as straightforward in F#. This article covers the implementation of two custom sorting algorithms, including the "sort by X and then by Y" function we all wish F# had.

Performing a "Select where property equals A or B" in CouchDB

Sometimes it can be difficult to translate SQL concepts over to document-style databases like CouchDB. In this post you'll learn how to select only documents with a specific set of property values while leaving out all other documents.

Backing up a Docker SQL Server database instance

Ever forget to set up data volumes for a Docker container, and then wondered how the heck you're supposed to back up the data inside? It's as easy as running a docker exec and a docker cp command!

Using Dapper with F#

A quick post showing you how to get up and running with Dapper in F#, including functions for getting, listing, deleting, updating and creating an object.