Development

ASP.NET Core

Generic behaviour in ASP.NET Core with Action Filters

Everyone hates copy/pasting code, and Action Filters in ASP.NET Core MVC offer a great way to avoid filling your controllers with boilerplate

Read More
Opinion

Stop Agonising Over Tiny Details

I recently started a new side project using React and - having not used React in anger before - wanted to get off on the right foot...

Read More
Opinion

Finding Freedom in "JavaScript Fatigue"

A lot of people have spoken about "JavaScript fatigue": the idea that there are so many new frameworks, tools and ideas available to the average JavaScript developer that it`s impossible to keep up...

Read More
Typescript

Cleaning up Resources using MutationObserver

Let's say you've written a shiny new component in your favourite framework and somewhere along the way you've allocated a resource that cannot be automatically cleaned up by the browser.

Read More
ASP.NET

Supporting SignalR Client Handlers after Connection Start

In general, when you create a new SignalR connection you are obliged to have already defined any of your handlers on the hub object...

Read More
Unit Testing

Moq-ing Dynamics

This post serves as a reminder to myself...largely because I have wasted time tracking this down twice now!

Read More
.NET

Autofac and Async Resources

I came across a problem on a recent WebAPI project where I wanted to use Autofac to inject some tenant information (i.e. derived per request) into the constructor of each controller

Read More
TypeScript

Maintaining Context in TypeScript classes

TypeScript is generally pretty good at persisting `this` in functions but there are certain circumstances where you can get a class function to run in the wrong context.

Read More
Unit Testing

Faking Mouse Events in D3

A helping hand when unit testing D3 and mouse events.

Read More
ASP.NET

Custom Operation Names with Swashbuckle 5.0

One of the many ways to customise Swagger output with Swashbuckle.

Read More