Archive for the ‘C#’ Category

Contextual composition (2009-3-19)

Today I would like to talk a little bit about something I’ve witnessed in software development over and over again. Actually, I’ve seen this more or less in every commercial codebase I’ve worked with so far. I’m talking about giant switch statements, the misuse of inheritance and code that is so entangled that it’s a [...]

Beat the It (2009-2-9)

. . . or how one could implement the It-Syntax introduced by MSpec. If you don’t know what the hell I’m talking about take a look at this code. (I don’t know if that’s the current MSpec syntax but I think you’ll get where I’d like to take you . . . )

[Description]
public class Transferring_between_from_account_and_to_account
{
[...]

Wording in BDD specs (2009-1-23)

Last week I had a little discussion on the german ALT.net mailing list in which I commented on a code example of a spec that wording in a BDD spec is of vital importance to BDD and therefore should be chosen very carefully. With this post I would like to clarify a bit what I [...]

Tales from hashes, null and boolean evaluation (2009-1-21)

A common programming situation when dealing with dictionary or hashtable classes is trying  to get a value from the hashtable and returning a default value in case nothing was found. In C# you could probably do it like this:

public class StringMapper : IMapper<string,string>
{
private IDictionary mapping; [...]

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? [...]

Nothing but .NET Germany – Half time recap (2008-9-24)

We’re now half way through the course and I must say that it’s even a better experience than I originally expected. I’ve got to know a lot of very interesting, smart and also very kind people this week. The chemistry in the course is just amazing.
The course itself is radically different from any training I’ve [...]

First steps with BDD (2008-8-27)

One of the positive things of being ill and staying at home is having time to look into stuff I always wanted to look into but never actually had the time to. A good example for this is Behavior Driven Development or in short BDD.
BDD is described by its creator Dan North as an enhancement [...]