Latest posts

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

InvalidOperationException: “Exception” in disguise? Or just the new ApplicationException?

Microsoft added ApplicationException with the idea that all exceptions that you made should derive from it. Fair point, you should be able to handle your own…

Why autogenerated MSTests are bad for you!

MS can generate complete test classes for you that test and access all methods and properties, no matter if they are private or public. Isn’t that awesome?…

Do NOT catch that exception!

Ohhh, I’ve recently seen one too many applications where the developers try to be safe by catching exceptions all over the place. It can be everything from a…

Reasons for a C# developer to learn VB.NET

I found the question above on Stack Overflow today, and it got really lovely answers.