Browse by Tags

All Tags » DBC (RSS)

Code Contracts - TDD in a DbC World by podwysocki

Lately, I've been talking about the new feature coming to .NET 4.0, Code Contracts , which is to bring Design by Contract (DbC) idioms to all .NET languages as part of the base class library. Last week, I attended QCon, where Greg Young, one of my CodeBetter...
Filed under: , ,

Your API Fails, Who is at Fault? by podwysocki

I decided to stay on the Design by Contract side for just a little bit. Recently, Raymond Chen posted "If you pass invalid parameters, then all bets are off" in which he goes into parameter validation and basic defensive programming. Many of the conversations...
Filed under: , , ,

Command-Query Separation and Immutable Builders by podwysocki

In one of my previous posts about Command-Query Separation (CQS) and side effecting functions being code smells, it was pointed out to me again about immutable builders. For the most part, this has been one area of CQS that I've been willing to let break...
Filed under: , , , ,

Side Effecting Functions Are Code Smells Revisited by podwysocki

After talking with Greg Young for a little this morning, I realized I missed a few points that I think need to be covered as well when it comes to side effecting functions are code smells. In the previous post , I talked about side effect free functions...
Filed under: , , ,

Design by Contract Revisited with C# and .NET by podwysocki

In a previous post, I talked about various attempts at frameworks that are trying to do Design By Contract (DBC) in .NET. Many simply just come across as simple validation frameworks without the heart of DBC which is the contract. Where is the contract...
Filed under: ,
More Posts