Smart Code

Thanks to everyone who came along to the Wellington .NET User Group tonight to hear my presentation "Smart Code".

My slides are now available for download as a PDF; I'll get the code up tomorrow once I've had a chance to prune the download size.

Update 18/3: Code file is now attached.

Comments

Smart Code

Hi

Thanks for sharing the slides and the code, they were both really useful.

Just one thing, your JoinWith(..) extension method can (in some cases) be achieved using String.Join(..) instead, see below:

public void JoinWith_TwoValuesWithComma_returnsString()  
{  
    var term = new List<string> { "alpha", "beta" };  
    var result = term.JoinWith(", ");  
    var newResult = String.Join(", ", term.ToArray());  //code added
    Assert.That(result, Is.EqualTo("alpha, beta"));  
    Assert.That(newResult, Is.EqualTo("alpha, beta"));  
}  

Although it has to be an array, for some reason it doesn't work with an IEnumerable.

Also your CAPTCHA is really hard ;-). I'm failing it 50% of the time when I preview the changes I've been making to my answer.

Thanks for the feedback

Thanks for the feedback - glad you found the presentation useful.

I'll have a look at tweaking the CAPTCHA settings to see if I can make it easier for humans without inspiring an avalanche of spam.

Improved ... I hope

I've lowered the CAPTCHA hurdle substantially - since I'm now also moderating comments, the risk of this causing a problem is reduced.