Category Archives: patterns

NBehave Experiment: MonoRail Controllers & Rhino Mocks

…whoever keeps His word, truly the love of God is perfected in him. By this we know that we are in Him. — 1 John 2:5 Well I decided it was finally time I took a look at NBehave as … Continue reading 

Also posted in data binding, fluent Silverlight, introduction, Silverlight | Comments Off

Building the often needed anti-corruption layer

The fear of the LORD is the beginning of knowledge, But fools despise wisdom and instruction.  — Proverbs 1:7 “Agile Joe” and I were chatting about the challenges of building on top of existing application platforms, specifically ones like Microsoft … Continue reading 

Also posted in installation, NSIS, tutorial, WIX | 6 Comments

Refactoring towards a DRY, fluent interface

But I (Jesus) say to you, love your enemies, bless those who curse you, do good to those who hate you, and pray for those who spitefully use you and persecute you — Matthew 5:44 Problem In my current project, I … Continue reading 

Also posted in fluent Silverlight, introduction, lambda expressions, practices, reflection | 11 Comments

Template Delegate Pattern

This post was originally published here. I’ve had to use this pattern a few times, most recently in Behave#.  It’s similar to the Template Method pattern, but doesn’t resort to using subclassing for using a template method.  Instead, a delegate … Continue reading 

| Comments Off

What does maintainability mean to you?

Sometimes in my discussions with other developers, we have to agree to disagree on certain things.  One recent topic was that of maintainability, in regards to the size of classes/methods and project structures.  I find it curious that some developers believe a … Continue reading 

Also posted in design, practices, refactoring | 12 Comments

Unit Testing NHibernate DALs – What Are You *Really* Testing?

Someone new to NHibernate recently asked me how to unit test their data access layer which uses NHibernate.  I’ve already sent him my thoughts on it, but figured it may make for a good blog post to get some of the … Continue reading 

Also posted in Mock, mocking framework, TDD | 6 Comments

Creating Composite View Components In MonoRail / Refactoring Exercise

In a previous post, I showed some examples of how to create custom view components in MonoRail and touched on the ability to create composite view components.  Since then I’ve refactored towards the use of interfaces which I think is a cleaner approach, … Continue reading 

Also posted in asynchronous, multi threading | 17 Comments