in

 

Browse by Tags

  • Intention-concealing interfaces: blob parameters

    When someone is using your code, you want your code to be as explicit and easy to understand as possible. This is achieved through Intention-Revealing Interfaces. Evans describes the problems of opaque and misleading interfaces in Domain-Driven Design : If a developer must consider the implementation...
    Posted to Jimmy Bogard (Weblog) by bogardj on 11-29-2007
  • Entity validation with visitors and extension methods

    On the Yahoo ALT.NET group , an interesting conversation sprung up around the topic of validation. Entity validation can be a tricky beast, as validation rules typically depend on the context of the operation (persistence, business rules, etc.). In complex scenarios, validation usually winds up using...
    Posted to Jimmy Bogard (Weblog) by bogardj on 10-24-2007
  • My First Interview (that I have given)

    Today I was asked to give a technical interview to a candidate which is kind of a new thing for me. He had already been screened on the "what's an abstract class and how do you do <insert something here /> in ASP.NET" kind of questions. So I got to have fun and go through some more...
    Posted to joeyDotNet (Weblog) by joeyDotNet on 09-28-2007
  • 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
Page 1 of 1 (6 items)
Copyright Los Techies 2007. All rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems