Latest posts

Inversion of control containers – Best practices

Disclaimer: I’ve used IoC containers for a couple of years now and also made a couple of my own (just to learn, nothing released). I’ve also consumed loads of…

Making custom DataAnnotation attributes work with MVC client side validation

In a previous blog entry I showed you an easier approach to localized DataAnnotation attributes.

Handling JSON responses in jQuery plugins

I’ve been coding several jQuery plugins lately and most of my plugins use Ajax and JSON to handle data. Each plugin gets a specific JSON string returned that…

Single Responsibility Principle

SRP is one of the easiest principles to learn, but one of the hardest to master. The reason for this is that it can be quite hard to see if a method or class…

A less evil singleton

I’ve been working a bit more with my Griffin Framework and I’m almost ready to release the Specification library in it. The specification library is an…

Reintroducing my compiler class

I created a class a couple of years ago which simplifies the CodeDom handling when you want to dynamically create objects in .NET. I got reminded of it when I…

Three reasons why you should use view models

I’ve answered a couple of questions on Stack Overflow regarding the benefit of view models. Here is a summary of all my answers focusing on view models in…

How to create documentation using code comments

Use the regular XmlDoc tags to document your code; it’s usually enough to type /// in Visual Studio to get the default tags.

jQuery UI autocomplete: Uncaught TypeError: Cannot read property ‘element’ of undefined

I got that exception when I loaded some options through JSON (with ASP.NET MVC). It took a lot of digging before I finally found the cause. And it’s not what…

Liskov’s Substitution Principle

I’m a big fan of patterns and principles, and I’m going to explain all SOLID principles in different blog posts. This post is all about LSP.