One of the key factors for success as a software developer is to work smarter, not harder. These posts contain tips on how you can do just that.

Exception Logging

Tuesday, January 19 2016 smart-code

When something goes wrong in a .NET application, it’s important to log sufficient information from the exception for diagnostic purposes. Here are some ideas on how to do this well.

Read more »

On the Merits of Simple Code

Saturday, November 28 2015 smart-code

As developers, we seem to love building complex things. This might be because being good at complexity is a prerequisite to becoming a developer in the first place. But this doesn’t mean that complexity is always necessary.

Read more »

Semantic Types

Sunday, September 27 2015 smart-code

As anyone who has seen my presentation Becoming a Better Developer will know, the anti-pattern primitive-obsession describes a practice that encourages the proliferation of bugs. The best way to counter this problem is to introduce semantic types.

Read more »

Command Line Processing

Sunday, September 21 2014 smart-code

Despite the popularity of application servers and single page web apps, there are still times when a simple console application is the easiest - and best - way to solve some kinds of problems.

Read more »

Easy String Conversion

Sunday, August 24 2014 smart-code

Here is an extension method for string that makes it easy - almost trivial - to convert the value held by the string into another type.

Read more »

Simpler code with DirectoryInfo

Tuesday, May 13 2014 smart-code

A couple of weeks ago at the Wellington .NET User Group we had a very interesting presentation from Patrick, one of the fine TradeMe developers, talking about the use of simple “value objects” to represent distinct kinds of information.

Read more »