Archives / 2003 / April
  • Caching and Callbacks

    I gave my second presentation to a user group for INETA this evening (well, last evening - it's late).  I spoke to about 70 members of the Philadelphia .NET user group, Philly .NET, about ASP.NET Performance Tips and Tricks and the Caching support in ASP.NET.  While I was discussing callbacks and the CacheItemRemovedCallback delegate that can be specified when an object is inserted into the cache, one of the users asked me a question that I wasn't sure of the answer to.  In my example, I was doing something like this: //create an instance of the callback delegate CacheItemRemovedCallback callBack = new CacheItemRemovedCallback(onRemove);   … more

  • Test Driven Development Article

    Eric Gunnerson at Microsoft has published an article on Unit Testing and Test Driven Development (he calls it Test First Development).  It does a good job of introdcuing the concept of TDD and showing how to use NUnit to perform unit testing of a class before and during its construction.  Another good resource I've found for TDD is the TDD Yahoo Group.  I'm hoping to write a few articles on the use of NUnit for data access component testing as soon as I'm finished with the redesign of's article management system (which was to have been done last week). more

  • Windows Server 2003 Notes

    I set up Win2K3 Server on a box at home a few days ago and here are some of the things I've learned.  The first thing I'd like to point out is that there is a pretty good Unofficial FAQ maintained by Windows XP MVP Larry Samuels. The machine I installed on is a Dell Dimension 4100, P3-1GHz with 512MB ram.  It has a DVD player that was flaking out under XP Pro for some reason (no sound during movies, otherwise fine).  I was at the brink of requesting a new DVD player from Dell, but I managed to get it to work after the Win2k3 install.  Here's what I had to do: Enable graphics acceleration.  This is under an Advanced button in the Display properties box.  … more

  • When is it OK to use a DataReader

    I just responded to a discussion on this topic on the ASP.NET Forums... There is a good article on the actual performance characteristics of DataReaders vs. DataSets on MSDN here.  In it, you will find that DataSets are not always slower than DataReaders, especially when there is any significant latency between the web server and the database server or when there are a limited number of connections available.  Still, a DataReader is generally going to be the fastest way and almost always the least resource intensive (memory) way to pull some data from the database.  However, that speed is not the only basis on which you should make your decision on whether or not to use it. In … more