Category Archives: CodeProject
Throwing exceptions
Throwing exceptions is in itself trivial. Just invoke throw with an exception object. But when should you throw? Should you create a new exception or rethrow an old one? What should you include in the exception info?
How to design exceptions
This article will teach you how you should design your exception classes. It’s a follow up to my previous article which told you what exceptions are and their intended usage.
What are exceptions?
This blog has been quiet for a while. I am currently writing a book about localization. Me and my partner is also getting close to release of our new startup. One of it’s features is to automatically catch unhandled exceptions … Continue reading
ADO.NET Fakes version 2.0
I’ve just updated the API for my ADO.NET Fakes library. The library is a complete ADO.NET driver which is designed to aid you in unit testing.
Azure failed me
(this entry was previously published as a PDF on twitter since I couldn’t access my blog) I really liked my first experience with Azure. I’m also going to certify myself (I still am). But that’s before things stopped working and … Continue reading
How Resharper rocks my average work day.
I’ve been using Resharper since I started coding in .NET/C#. It’s a tool with a lot of features which aids you in the average day development. In this blog post I’m going to show you the features that I use … Continue reading
Repository pattern, done right
The repository pattern has been discussed a lot lately. Especially about it’s usefulness since the introduction of OR/M libraries. This post (which is the third in a series about the data layer) aims to explain why it’s still a great … Continue reading
ADO.NET, the right way
ADO.NET is actually quite powerful if you use it correctly. This post will teach you everything from making your ADO.NET code driver independent to how to implement the repository pattern and unit of work. This is the follow up post … Continue reading
Better support for localization in ASP.NET.
If you’ve tried the built in localization features in ASP.NET you’ll probably written cluttered view models like:
Displaying date/time using the user timezone in ASP.NET MVC
This post will show you how you can display date/time using the user timezone (without it being configured anywhere in your application).