1. Functional Error Handling

    I've been building a small application for some internal operations tasks recently and made the decision to use F#. Internal tools are a great way to sneak a little something different into a homogeneous one-stack team; they're low risk and can show off different ways of doing things to other...

  2. 2014: A Retrospective

    It may already(!) be 1/12th of the way through 2015 but I thought I'd post some thoughts on the past year. F# It has been a very good year for F#, the community is growing quickly and is really enthusiastic. With the highly successful open sourcing of core components...

  3. Composing JavaScript Promises

    This is something I encountered recently on a project. I was working with a system that required short-lived server generated tokens to be passed back with every request, for authorisation. The immediate (and rather naive) idea of implementing a service for this comes out something like: Service.prototype.getToken = function...

  4. How to Enable CORS in ASP.NET Web API v2.x

    In this age of APIs and the 'Internet of Things', a client might request many resources across hosts. Most browsers implement an array of security around these requests, for hopefully obvious reasons. CORS is a standard mechanism which allows web servers to designate access controls for cross-domain requests with a...

  5. Deriving monadic operators from refactoring

    Yes, I'm writing about monads but fear not; I won't be delving into the depths of category theory. Instead this post shall attempt to remain practical, showing that in practice monads don't have to complex and difficult to understand and actually can be derived simply through refactoring—they're just...