Archive for November, 2008

A new syntax for xUnit.BDDExtensions ??? (2008-11-27)

I’ve been doing BDD with the “context/specificationt”- style for about 4 months now. Examples for this style are MSpec, NSpec or my little framework called xUnit.BDDExtensions.
What bothers me lately is that this style mixes context and behavior under test into one fixture class name, which can be extremely long because of that. An [...]

Command Query Separation (2008-11-20)

Does this sound familiar to you? From time to time someone delivers you answers to questions that have been on your mind for quite a while. You didn’t find an answer on your own and most of the people you talked with either didn’t care or hadn’t satisfying answers for you. When you finally hear [...]

Quote of the day (2008-11-19)

Enjoy the following comment I’ve heard today in the Domain Specific Languages track:
. . .  XML is data dressed up as a hooker . . .

Thoughts on (J / Iron)Ruby (2008-11-18)

Today I attended a tutorial about JRuby and JRuby on Rails. It was presented by Ola Bini from Thoughtworks, who did the more general part on (J)Ruby and Nick Sieger from Sun, who did the Rails stuff. What can I say, it was really cool.
I’ve been curious about Ruby for quite a while now, mostly [...]

Sessions I plan to visit at QCon SF 08 (2008-11-17)

Monday (Tutorials): Stuart Charlton: "Cloud Computing for Developers and Architects" Ola Bini & Nick Sieger: Getting started with JRuby and JRuby on Rails
Tuesday (Tutorials):
Neal Ford & Martin Fowler & Rebecca Parsons: "Domain Specific Languages" [...]

On the way to QCon San Francisco 08 (2008-11-15)

After 1 1/2 hours of train ride , 11 hours of flight and 30 minutes with a taxi (in that order) I finally arrived in San Francisco. It’s my first time in the USA and I’m also currently experiencing jet lag for the first time. 9 hour time difference is huge! It’s a weird feeling [...]

Glue code for validation (2008-11-10)

Wouldn’t it be nice to be able to just call

var report = myDto.Validate();

without sacrificing extensibillity, testabillity, etc? What about at this,

public static class ObjectExtensions
{
public static ValidationReport Validate<Subject>(this Subject subject)
{
[...]

Some thoughts about validation logic (2008-11-8)

The design of validation in software is one of those strange topics you can discuss endlessly about. Some of the major questions concerning validation:

In which Layer should validation logic reside? Is it part of the Domain Layer, part of the Presentation Layer, or is it somehow part of both?
Who is responsible for validation? [...]