-
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#”.
-
27Sep
2010 CRTP in C#Curiously Recursive Template Pattern made possible in C#.
-
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.
-
20Feb
2010 Unit Tests As A Refactoring ToolSo I have this class that is a bit too fat and has no unit tests. It’s way overdue for a clean up. I thought I would investigate how to refactor with unit tests. Application The application in question is a fairly normal case of a business DSL where the domain rules are expressed in [...]