-
31Dec
2010 Composite Pattern and Unity IoC containerJoel Spolsky thinks that IoC containers are an overkill and Dan North agrees that IoC Containers inadvertently tolerate highly inter-dependent designs. IoC containers, in my opinion, are indispensable in creating a loosely coupled application. So much so, that I think that there should be a language that has Dependency Injection built-in. That aside, I have [...]
-
30Nov
2010 Book review: Agile Principles, Patterns, and Practices in C#Review of Bob C. Martin’s “Agile Principles, Patterns, and Practices in C#”.
-
31Oct
2010 Coverage, ASP.NET MVC Coverage, SpecFlow in MS Team BuildIn this post I will go through creating solutions with code coverage, including ASP.NET MVC projects, setting up MS Test Specflow projects and getting all that to run on MS Team Build 2010. The default out of the box setup for doing the above is not too tricky, however Team Build has stricter test pass [...]
-
27Sep
2010 CRTP in C#Curiously Recursive Template Pattern made possible in C#.
-
12Aug
2010 Type-safe Dynamic MixinsThis is another one of those posts that arose from an epic StackOverflow answer. The problem to be solved was creating a factory that would at runtime merge two implementations of different interfaces into one object. I have implemented this using Castle Dynamic Proxy (which is totally awesome, that’s why all mocking/testing libraries use it). [...]
-
31Jul
2010 Why My Dyson Is A Better Smartphone Than iPhone 4In which I try to relate border collies, Dyson vacuum cleaners, City 2 Surf and iPhone 4.
-
18Jun
2010 Handling 404, unhandled and unsafe URL errors in ASP.NET MVC applicationSpent a bit of time recently to try and get my MVC application handle 404 errors exactly as I want. The solution that I ended up choosing is based on this excellent SO answer. The advantage of rendering the Error view by calling ErrorController.Execute, as opposed to making an entry in web.config, is that you [...]
-
18Jun
2010 Converting an Expression to a compiled LambdaA quick guide on how to convert an expression to a compiled lambda.
-
29May
2010 A few things you might not know about System.NullableThere is plenty of information about Nullable<T> type out there and how to use it. There are, however a few tidbits that are not quite as obvious at first glance. Nullable is a value type It’s a struct that can be null. The only reason why int? intVal = null; compiles is because C# compiler [...]
-
28Apr
2010 Keeping your sanity whilst developing for Windows Phone 7Dealing with those obtuse run-time errors whilst developing for WP7.

