Net Framework

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.

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.

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.

November 10th, 2010

ORM wars: Comparing nHibernate, LINQ To SQL & the Entity Framework

Ted Neward described ORM as the “vietnam of computer science” in that it’s a quagmire that starts well, gets more complicated as time passes and ends up as an open-ended commitment with poorly-defined goals and no clear exit strategy.

June 15th, 2010

Converting EPiServer 6 to use claims-based authentication with WIF

Converting an EPiServer site to become claims-aware is straightforward enough – the complications come when you try to use the editor and administration interfaces.

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.

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…

October 28th, 2009

Securing WCF web services for Silverlight with Forms Authentication

One of the most straightforward ways of securing Silverlight-enabled WCF web services involves leveraging ASP.NET Forms Authentication.

February 2nd, 2009

New features in C# 3.0 and C# 4.0 – are Microsoft undermining C#?

I have noticed a number of features creeping in to C# 3.0 and the forthcoming C# 4.0 that I feel very uncomfortable with. In their desire to continue to develop and enhance their platform, could Microsoft be in danger of undermining C#?

November 13th, 2008

Implicitly unreadable: the C# “var” keyword and lazy code

I am starting to increasingly see code samples that make heavy use of var and the impact of readability can be pretty extreme – it really is the kind of thing that makes a war-weary old coder like me shiver.