Category Archives: Architecture

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?

Posted in Architecture, CodeProject | Tagged | Leave a comment

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.

Posted in Architecture, CodeProject | Tagged | Leave a comment

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

Posted in Architecture, CodeProject | Tagged , | 1 Comment

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

Posted in Architecture, CodeProject | 7 Comments

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

Posted in Architecture, CodeProject | Tagged , , , | 22 Comments

Data layer, the right way.

The goal with this post is to give you a better understand about how you can design your data layer and why it’s important to create a complete abstraction layer.

Posted in Architecture | Tagged | 2 Comments

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:

Posted in Architecture, CodeProject | Tagged , | 3 Comments

New version of Griffin.Networking – A networking library for .NET

I’ve refactored Griffin.Network quite a lot (I did say that it was still an early release). The new version is called v0.5 (the library is taking shape, but there is still some things to take care of). Highlights: 1. The … Continue reading

Posted in Architecture, CodeProject | Tagged , , | 7 Comments

How to dynamically modify model meta data in ASP.NET MVC

Normally you just add the [Required] attribute to a view model to make it required. But I needed a way to configure whether a field to be required or not. The requirement was that it should be configured through web.config: … Continue reading

Posted in Architecture | Tagged | Leave a comment

COM+ done right (refactoring a legacy application)

I’ve been spending a lot of time lately looking into a legacy application which uses COM+, i.e. got classes that inherits ServicedComponent. In this article I’ll show you some common mistakes and how you can correct them.

Posted in Architecture | Tagged | 2 Comments