Thoughts on the use of Boolean function parameters and Boolean function return types.
C#
A collection of 29 posts
One Reason Why NCrunch Is Worth The Cost
Why I'm happy to have ponied up for NCrunch, an automated concurrent testing tool for Visual Studio.
Schoolboy Error Of The Day
This dumb mistake just cost me an hour spelunking around in the debugger: var status = source.Substring(source.LastIndexOf("/" + 1)); (where source is e.g. "http://foo.com/status/all-is-good") Fortunately the ramifications were picked up in the acceptance tests,
WCF - Logging Before and After Operation Invocation
Here’s another custom WCF EndpointBehavior I found useful recently. Not content with logging all unhandled errors, I wanted to output a DEBUG level log message before and after every operation invocation. As before, I’m using the Castle Windsor
WCF - NHibernate Unit Of Work Endpoint Behavior
OK, my last WCF-related code snippet of the day, I promise. This is quite similar to the last one. I required that the WCF service I was developing started a new NHibernate Session for each invocation, and closed it after
WCF - Global Exception Handling
I’ve done a fair bit of WCF development recently (and amazingly I came out of it relatively unscathed, both psychologically and emotionally). Using Castle Windsor’s WCF Facility helped a great deal, but I still found myself writing a
Testing LINQ Queries
I’ve been asked “How do you test LINQ queries?” a couple of times in the past few months, so I thought I’d blog my answer for the benefit of all you lovely people. Firstly I should explain how
An MVC Gotcha and the PRG Pattern
If you’ve recently moved across to ASP.NET MVC development following years of wrangling with the leaky abstraction that was WebForms, you may have encountered some seemingly curious behaviour when posting back to the same URL. Suppose we have