C#

February 5th, 2013

Using Umbraco 6 to create an ASP.NET MVC 4 web application

A lot of .Net-based CMS systems have been slow to adopt MVC and Umbraco have had more trouble than most. The newly released version 6 boasts a rendering model that plays pretty nicely with a full MVC 4 project – so long as you’re prepared to ignore the webforms lurking in the Umbraco UI.

November 24th, 2012

Regular expressions and RegEx performance in .Net

If you run into performance problems with regular expressions in .Net then your options for tuning and improving are pretty limited. Your only real hope is to keep a close eye on exactly what you’re throwing into the RegEx black box.

September 21st, 2012

Contract-first web service development using WCF and .Net 4.5

Contract first service development in .Net has always been hampered by the limited availability of any appropriate tooling. The new Contract-First tool in Visual Studio 2012 is only a partial solution.

July 2nd, 2012

How not to use dependency injection: service locators and injection mania.

Development teams can struggle with dependency injection, often because they don’t have a clear understanding of how best to use it.

May 6th, 2012

Micro ORMs demonstrate that less is usually… less

Micro ORMs such as Dapper, Massive and PetaPoco are an increasingly fashionable solution to the problem of bridging the databases and object world. However, it’s important to understand the trade-offs involved in using a micro ORM as opposed to something “heavier” with a more advanced feature set.

January 8th, 2012

Entity Framework anti-patterns: How not to use an ORM with SQL Server

The Entity Framework has come a long way since its earliest incarnations prompted a vote of no confidence from the development community. However, like any data access technology, there are still a number of traps for the unwary – particularly if you’re using it in a tiered application.

September 22nd, 2011

If Microsoft are pushing HTML5 for Windows 8 where does this leave Silverlight?

All change for Microsoft developers. Again. The new Visual Studio developer preview demonstrates that Microsoft are serious about promoting HTML5 and JavaScript as a primary application development platform for Windows 8.

February 3rd, 2011

Estimation pitfalls: Why software development estimates are so difficult

Estimates are, in essence, a kind of crystal ball gazing. You are making a series of educated guesses about how long something will take whilst often being hampered by imperfect understanding and squeezed by commercial pressures.

December 12th, 2010

Exception safety in C# – more than just trying and catching

Exceptions can be a very effective means of handling errors in a systematic way, but using them properly can be a pretty delicate operation. If they are not handled properly then they can become a source of leaking resources, partially-completed operations and inconsistent data.

October 15th, 2010

How to write useful .NET and C# coding standards

Coding standards are one of those documents that managers often feel obliged to produce, so they are frequently written without any clear sense of purpose. A number of different motives can inspire coding standards – not all of them very positive.

July 12th, 2010

Using the WCF Authentication Service without cookies

How to use web services that are secured with the WCF Authentication Service in clients that don’t support cookies.

May 20th, 2010

Using custom .Net configuration files in both applications and websites

There will be times when you want a greater level of control over .Net configuration files, particularly when you are trying to manage settings across a large and complex set of environments.

May 13th, 2010

Creating a security token service website using WIF in Visual Studio

This walkthough explains how to create a test claims issuer in Visual Studio 2008 using the Windows Identity Foundation SDK.

April 6th, 2010

Reading and Geocoding Ordinance Survey’s open data in .NET

Ordinance Survey’s UK free OpenData products contain a wealth of UK location-based data – the only problem is how to extract something useful from them…

February 20th, 2010

Developing with Microsoft Surface – a few lessons learnt

Developing with Microsoft Surface isn’t quite like any other rich interface development. Here are some practical learning points that can help to ease commercial development on Surface.