Søren on DBC

Posted on 5/05/2008.

Recently, Søren Skovsbøll wrote a excellent follow up to a little post I did a while back on using C# 3.0 expression trees for representing predicates in design by contract. The conclusion of that series was that C# was inadequate in lots of ways to the task of doing design by contract. Having said that, you can still achieve a lot using serialisation of object states and storage of predicates for running before and after a scope.

Søren was not happy with the format of errors being reported, nor the potential for massive serialisation blowout. Rather than comment on the blog, he went away and did something about it. And it’s pretty good! Go take a look, and then pick up the baton from him. Your challenge is to extract the parmeter objects from the expression trees of the predicates and take lightweight snapshots of the objects refered to. You also need a “platform independent” way to serialize objects for this scheme (i.e. one that doesn’t depend on XmlSerialisation or WCF data contracts.

Think you can do it? Apply here! :P

Read Full Post | Make a Comment ( None so far )

Recently on The Wandering Glitch...

Announcing LinqToRdf v0.6

Posted on 4/05/2008.

Announcing LinqToRdf v0.5

Posted on 26/04/2008.

SPARQL Tutorial Just Published On DeveloperWorks

Posted on 23/04/2008.

Functional Programming in C# - Higher-Order Functions

Posted on 16/04/2008.

Darth Vader never had to put up with this!

Posted on 10/04/2008.

Functional programming - Is it worth your time?

Posted on 9/04/2008.

RIP Arnie Humour

Posted on 12/03/2008.

First Forays into F#

Posted on 11/03/2008.

Liked it here?
Why not try sites on the blogroll...