Posted in Travel on May 30th, 2006 No Comments »
from BoingBoing.net… “The MySociety project has produced an incredible set of travel-time maps of the UK, showing the voyage-time using color shading (red for close, blue for far) and contour lines to indicate each hour’s travel — they compare the overall travel time for going from A to B by rail and [...]
The website I work on recently received a large increase in visitors due to a marketing drive. This caused IIS to start recycling the worker process very often as memory consumption was increasing out of control. The user experience wasn’t affected by this problem as we run a load-balanced system, however we had to fix [...]
Posted in SQL on May 23rd, 2006 No Comments »
For those of you who write SQL, Redgate (of ants, sql dependancy tracker, and sql compare fame) have released a free download SQL Prompt which provides Intellisense-style prompting). It works in Query Analyzer, Enterprise Manager, etc.
Here’s a quick example of how we do layer seperation through interfaces to make each layer testable. Although the tests run, the UI section is untested. Download file.
[csharp]
using System;
using System.Web;
using System.Web.UI;
using NMock;
using NUnit.Framework;
using Socialanimal.Example.Business;
using Socialanimal.Example.Business.Implementation;
using Socialanimal.Example.Core.Entities;
using Socialanimal.Example.Core.Interfaces;
using Socialanimal.Example.SqlDatabase;
namespace Socialanimal.Example.Core.Entities
{
public class Employee
{
public string Forename;
public string Surname;
public Employee(string forename, string surname)
{
this.Forename = forename;
this.Surname = surname;
}
}
}
namespace Socialanimal.Example.Core.Interfaces
{
public interface [...]
Posted in Fun on May 15th, 2006 No Comments »
found via the London Underground blog
It’s been a while since I wrote about the C# tools / frameworks i’m currently using, so here we go.
log4net - for all our logging needs.
nunit - automated testing.
nmock - for mocking interfaces and writing more testable code. (see my blogpost)
nant - automating our build cycles (although we’re looking at msbuild to replace Cruise Control, [...]