Latest posts

ASP.NET MVC3: Custom error for 401 Unauthorized

Have you tried to display a custom error message if authorization fails..

Double check pattern

I just answered a question on SO about lazy loading which involved the double check pattern. It’s a really useful pattern for lazy loading since it hurts…

Adding a required indicator in ASP.NET MVC3 using jQuery

You might want to visually indicate that fields in ASP.NET MVC3 are required.

How to handle transactions in ASP.NET MVC3

I got annoyed about having to repeat the transaction handling in every POST method of my controllers. First of all: I don’t want to have to take the unit of…

Protect your data!

The introduction of OR/M libraries and strongly typed views/view models has made a lot of programmers switch to the dark side. Let’s fight this evil!

When to throw exceptions

I’ve written several posts about exceptions. For instance when you should catch them or how you should design them. In this post I’ll discuss when you should…

Get injected into the world of inverted dependencies

I’ve just written a new article on CodeProject. It’s an introduction to Inversion Of Control containers and Dependency Injection. It can be found here.

Griffin.Container – “The drunken IoC container”

(I started writing this blog entry on Friday night, but somehow I didn’t manage to finish it.)

SOLID principles with real world examples

The following article aims to explain the five SOLID principles with real world examples. The SOLID principles are five programming principles which are…

Liskov’s Substitution Violation in the real world

I was creating an integration between my own users table (or document since I use RavenDB) with the MembershipProvider in ASP.NET. I’m using the default SQL…