Monthly Archives: October 2012
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
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.
Switched to disqus
I’ve switched from wordpress comment system to disqus. The old comments will hopefully get imported pretty soon.
Griffin.Decoupled: The queries
This article will show you how you can build your queries with the help of Griffin.Decoupled. Griffin.Decoupled is a small framework which helps you build applications with loose coupling which also can be scaled easily.
Introducing Griffin.Decoupled
I recommend that you read my other post first, since it describes the rationale behind Griffin.Decoupled. This post will only demonstrate how you use the framework. Griffin.Decoupled allows you to execute commands and domain events within your application to reduce … Continue reading
When is a logger a dependency?
There are some discussion about whether loggers should get injected into your classes (dependency injection) or if you should use the logger facade (like LogManager.GetLogger<MyClass>()). The answer rather simple: As for all classes, dependencies which is mandatory should get injected. … Continue reading
Writing decoupled and scalable applications
Preface This article is the first in a series of three articles. It’s purpose is only to introduce you do domain events and commands. The next article will show you how you with almost no effort (thanks to Griffin.Decoupled) can … Continue reading