Latest posts

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.

How to become a computer expert

Computer expert flowchart

HtmlHelper for enums in ASP.NET MVC3

Have you tried to get enums working with HtmlHelpers? It can be a hassle, and here is my solution for it. It requires that you tag each entry in the enum with…

REST:ify your delete links

I wrote an answer about it @ stackoverflow.com.

The art of creating exceptions

Please take a moment and think about WHY you throw exceptions.

Common mistakes when working with exceptions

This is an evil one, because it’s really easy to do and the compiler does not complain about it (it should be easy for the compiler to spot). The code also…

Simplified localization for DataAnnotations

Update