Month: February 2009

  • Cyclomatic complexity of 110 percent!

    Resharper PowerToys gives our code a whopping 110% of cyclomatic complexity! ..and this is only for a method that has two foreach-loops! Well, one of the loops has an inner-loop with some if-statements but was that really so complex? Anyway, the good thing about Resharper is that it warns us that our code gets too…

  • Favour composition over inheritance: A real world OO example

    So in my current work I'm real busy with Object Oriented programming. With that come OO principles like favour composition over inheritance. Does that make composition a rule of thumb? Let's look at an example. Not just one from the top of my head, but one that we actually use in the real world… Well,…