Code Review: Double Checked Locking Code

A friend of mine recently sent me some code to review:   Hi Peter, Do you have any suggestions on how to clean up this code? In particular the creation of a particular singleton type doesn’t look very pretty in this model:   private DoubleCheckedLock<SingletonClass> myInstance = new DoubleCheckedLock<SingletonClass>(); public SingletonClass Current {     get…

4

New F# Release.

Don Syme and the F# team have just released a new version of F#. Check it out here: http://blogs.msdn.com/dsyme/archive/2006/11/30/f-1-1-13-now-available.aspx   Peter

0

What Do Programmers Really Do Anyway? The data is in!

The smart folks over in the MSR-Human Interactions in Programming team have done some interesting research into the question of “What Do Programmers Really Do Anyway?”. I’m more than a little pleased to see that the data is consistent with the assertions I made in my previous blog posts. Some of their results are here: http://research.microsoft.com/research/pubs/view.aspx?type=Technical%20Report&id=994 http://research.microsoft.com/hip/papers/Ko2007BugFixing.pdf…

1

C# Automatically Implemented Properties – My Video Debut

Hey Folks, Charlie Calvert video taped our discussion on some of the new C# 3.0 features. Find it here: http://wm.microsoft.com/ms/msdn/visualcsharp/peter_hallam_2006_11/PeterHallam01.wmv. Cheers, Peter

2

What Do Programmers Really Do Anyway? (aka Part 2 of the Yardstick saga)

Way back in 2002 when we started working on Whidbey, I captured my thoughts on the direction we should take for C# and Visual Studio in two large emails. In the first email The Yardstick I spent a lot of time saying that you must evaluate features against the amount of time they save versus the…

30