Brad Merrill was the presenter. He is a co-author of Visual Basic Design Patterns and C# Essentials. The talk consisted of a walkthrough example of an authentication mechanism. From the class diagram consisting of abstract class, intermediate abstract classes and concrete classes to showing source code snippet. The walkthrough is of the Factory design pattern.
While his book was on design patterns, his past experience includes work on the .NET Developer Platform and ASP.NET teams. Combine this with his current role at n internet media company, I would be interested in listening to this individual talk about .NET Performance and Optimization. He passed along one tip that was quite interesting.
Apparently, indexing through an array and using a loop as opposed to using foreach provides better performance. The JIT will better optimize this code. His other argument was the claim that the developer will produce better code with more "explicit" code. This is open for debate; but the optmization is good to know.
Also, another tidbit is the fact that when faced with a decision to use an "is" statement in C# instead of "as", "is" is almost always preferred.
Answer for yesterday's brainsharpener will be in tomorrow's post.
RANDOM LINKS OF THE DAY
Visual Studio 2005 Hot Fixes http://connect.microsoft.com/content/content.aspx?...
SessionCache
http://dotnetslackers.com/articles/aspnet/SessionCache.aspx. This article outlines benefits to using Cache objects as opposed to Application. It presents a good argument for WeakReference. For whatever reason, if the system is tending towards instability, you are in trouble anyways.
However, for a scenario where you have Cache with NotRemovable priority, wouldn't this be equivalent to storing in Application?
VPC
In a previous blog entry, I blogged about virtualization and the value of VPC and remote debugging. Here is a link where MS provides VHDs: http://www.microsoft.com/technet/try/vhd/default.mspx