SoftMemes
SoftMemes

Reputation: 5702

What happened to Code Contracts?

Code contracts was all over the blogosphere years ago before the .NET 4 release, the runtime components included in .NET 4 and the static checker made available in the more expensive Visual Studio 2010 editions.

The buzz around code contracts appear to have died down though, are people using it in production? Is any more work being done on it from Microsoft Research?

Upvotes: 10

Views: 858

Answers (2)

Dave Black
Dave Black

Reputation: 8009

It's still being used within the .NET Framework itself (at least as of 4.51). For an example, take a look at the implementation of the System.Text.StringBuilder class.

Upvotes: 0

Jon Skeet
Jon Skeet

Reputation: 1499770

Looking at the project page, the last release was June 2nd 2011 - which seems pretty recent to me.

So yes, I think it's still being worked on. Will it ever make significant inroads into the average code shop? It's too early to tell. Occasionally I see Stack Overflow questions on it, suggesting it's still in use in some places - but I haven't seen as much evidence of take-up as I'd really have liked.

I suspect it's one of those tools which is really useful in some situations, and a bit of a pain in others - and also much more useful in greenfield projects than brownfield ones.

Upvotes: 7

Related Questions