Ben's Blog A place to share my thoughts

Dependency Injection in ASP.NET MVC 5+

In this short article, I will explain and demonstrate dependency injection in ASP.NET MVC.

Read more

SQL Pivot to obtain EAV data

Here is a brief post showing how we can use a SQL pivot to obtain EAV data.

Before I go into the actual code and briefly explain how it does it, I will explain the reasoning why such a model was developed.

Read more

Delegates, Events and EventHandlers in C#.NET

I recently* came across some C# code which had a mixture of delegates, events and eventhandlers but coming from a Java background, I was completely lost!

Read more

Unity 5.6.0f3 crashing on splash screen fix

I lost a few hours trying to get unity to run, only to crash at the splash screen and get greeted by the bug tracker!

Read more

NGINX – How to setup as a reverse proxy

Before I show you the installation and configuration, if you don’t know already what a reverse proxy, or on that matter a proxy, then read the next section. If you just want to get onto the configuration, you can skip this section. I found that there are many definitions out there on what a proxy is, but many were extremely abstract, making it difficult to contextualise. For this reason, I have attempted to keep it simple, whilst covering the core.

Read more