in

 

Browse by Tags

  • 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 have an application service that is used to make various modifications to a shopping cart...
    Posted to joeyDotNet (Weblog) by joeyDotNet on 09-06-2007
  • 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 is passed to the Template Method to substitute...
    Posted to Jimmy Bogard (Weblog) by bogardj on 08-29-2007
  • 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, so I thought I'd share. First, let's review the...
    Posted to joeyDotNet (Weblog) by joeyDotNet on 05-15-2007
  • Evils of duplication

    This post was originally published here . Everyone is guilty of using "Ctrl-C, Ctrl-V" in code. During development, we may see opportunities to duplicate code a dozen times a day. We're working on some class Foo that needs some behavior that is already implemented in class Bar. The quickest...
    Posted to Jimmy Bogard (Weblog) by bogardj on 04-16-2007
Page 1 of 1 (4 items)
Copyright Los Techies 2007. All rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems