While both Visual Studio and WebStorm have templates for node.js Express applications in this post (and and subsequent few posts) I’m going to walk through setting up an Express application so that you can see how it fits together. Installing Express To start with I created a folder with just a package.json file in it, […]
The Node Package Manager is a bit like NuGet for node. It is a way to get additional functionality into node for frameworks that were not bundled with node itself. Like NuGet it has its own website where you can browse the available packages. It is at https://www.npmjs.org/  Installing a package To installing a package, […]
Oh, Would I! Could I really do that?!? Well yes, but I cannot think of any situation where I would want to do this. I’m not saying there isn’t a time I might conceivably possibly maybe actually want this, but I can’t think of it right now and I’ve not come across that situation for […]
Slide Deck The slide deck is available in PDF format.
This is a step-by-step guide to setting up Fluent Migrator to run on a build server using the MSBUILD project Step 1: Setting up the migrations project Create the Project The migrations project is just a class library with a couple of NuGet packages added to it. To make it easier later on to pick […]
I was recently following Jouni Heiknieme’s blog post on Encrypting connection strings in Windows Azure web applications when I stumbled across a problem. The issue was that I wasn’t encrypting the connectionStrings section, I was encrypting a custom section (one provided by SimpleAuthentication). And in order to encrypt that section, aspnet_regiis needs access to the […]
In .NET 4.5 three new attributes were introduced. They can be used to pass into a method the details of the caller and this can be used to create better trace or logging messages. In the example below, it outputs tracing messages in a format that you can use in Visual Studio to automatically jump […]
In his book Agile Principles, Patterns, and Practices in C#, Bob Martin talks about using pre- and post-conditions in Eiffel to detect Liskov Substitution Principle violations. At the time he wrote that C# did not have an equivalent feature and he suggested ensuring that unit test coverage was used to ensure the same result. However, […]