Friday, October 31, 2008


Linq to SQL Bites the Dust

Absorbed or just "pining for the fjords!" link.

Wednesday, October 29, 2008


Overview of the New Features in C# 4.0

This document New Features in C# 4.0 hosted on the MSDN Code Gallery is a high level description of the new additions to the C# language.


Perth .NET User Group Meeting, Tues Nov 4th, 5:30pm: F# |> Functional with Nick Hodge

Join us at the Perth .NET Community of Practice, Tuesday November 4th to hear Nick Hodge present a session on F# and the rise and rise of the new .NET functional and dynamic languages, where and when to use them, and why F# is NOT the new C#!

TOPIC: F# > Functional with Nick Hodge
DATE: Tuesday, November 4th, 5:30pm
VENUE: Excom, Level 2, 23 Barrack Street, Perth
COST: Free. All welcome

Nick is a self-confessed professional geek working for Microsoft. He has over 22 years of IT industry experience in a variety of sales, technical, management, semi-marketing and strategic roles. He is a sought-after presenter, prolific social networker and closet workaholic.

Please Note: This meeting is not in our usual Thursday slot.

Sunday, October 26, 2008


C# Tips and Tricks

There is a very useful post over at StackOverflow on some of the less known parts of C#. Here are a few of my favourites:

Default Event Handler:

public delegate void MyClickHandler(object sender, string myValue);
public event MyClickHandler Click = delegate { }; // add empty delegate!

Let’s you do this:

public void DoSomething()
    Click(this, "foo");

Instead of checking for null before invocation:

public void DoSomething()
    if (Click != null) // Unnecessary
        Click(this, "foo");

Chaining the ?? operator:

string result = val1 ?? val2 ?? val3 ?? String.Empty;

And it never ceases to amaze me that many devs don’t use System.IO.Path.Combine(), instead of:

string path = dir + "\\" + fileName;

Thursday, October 23, 2008


Do You Review?

I can honestly say I love where I work. And today was a classic example why. I had a code review! (does your team have code reviews?). One of my colleagues pointed out I could make use of Nullable GetValueOrDefault() in the following code snippet:

Instead of this:

int? objectID;          // passed in to a method...
DateTime? signedDate;   // --- "" ---
if (objectID == null)
    objectID = 0;
if (signedDate == null)
    signedDate = (DateTime)SqlDateTime.MinValue;
SomeDBWrapperMethod((int)objectID, (DateTime)signedDate);

Just do this:


Seems so obvious, after the fact! I’m sure I must have come across this before, but I can’t remember having ever used it. It’s great to have extra pairs of eyes go over your code.

Sunday, October 19, 2008


SQL Server scripts

Sunday, October 12, 2008


SQL Server 2005 and 2008 Maintenance

Ola Hallengren has some very useful SQL Server scripts for Backup, Integrity Check and Index Optimization over at his blog.

Saturday, October 04, 2008


Resource Guide to Free Microsoft Software and Online Services

I came across this link to the Resource Guide to Free Microsoft Software and Online Services over at Nick Hodge's blog. It’s a useful, one stop collection of free Microsoft resources. As a bonus, it’s being updated!

Thursday, October 02, 2008


MVP Award

This morning I received an email welcoming me into the Microsoft MVP award program. I would sincerely like to thank everyone for their support and encouragement. Over the last 5 years I have met and corresponded with several MVPs and have always had the highest respect for their skills, knowledge and commitment. It's an honour and I hope I can live up to it.

Congratulations to Joe Albahari, who was also awarded MVP status today.

Wednesday, October 01, 2008


Perth .NET User Group Meeting: Thurs Oct 2nd, 5:30pm - 7pm: PLINQ and TPL: Hot New Solutions for Parallel Programming with Joe Albahari

Join us at the Perth .NET Community of Practice, October 2nd to hear Joe Albahari present a session on two parallel programming technologies at the forefront of threading in the .NET world. In this session, Joe will demonstrate both technologies, and look at how well they solve some real-world problems. He will also discuss what it means to think of LINQ queries as functional programming islands, and why this is important in how you code today. Finally, we'll look at their relative performance, and whether PLINQ is indeed a practical solution for completely transcending the hard problem of thread safety.

TOPIC: PLINQ and TPL: Solutions for Parallel Programming with Joe Albahari
DATE: Thursday, October 2nd, 5:30pm
VENUE: Excom, Level 2, 23 Barrack Street, Perth
COST: Free. All welcome

More details here.


Powered by Blogger