Browse by Tags

All Tags » Pattern (RSS)

Beginning with Singleton .Instance Peekaboo, and Ending Up with Why Singleton At All?

I know the title of this post is weird, but just bear with me a moment... Often time I found myself writing code like UserServices.Instance.DoSomething(...) when using Singleton pattern. And afterward, I keep saying to myself, that's just ugly. How...
Posted by Jimmy Chandra | 1 comment(s)
Filed under: ,

Adapter Pattern Case Study: LINQ to SharePoint SPListCollection

While helping my co-worker on a problem we stumbled into a quite interesting thing regarding SharePoint SPListCollection class. SPListCollection, as it turns out, is not derived from IEnumerable interface (see http://msdn2.microsoft.com/en-us/library...
Posted by Jimmy Chandra | with no comments
Filed under: , ,

Excellent GoF pattern resource

I was just browsing around the C-Sharp board when I stumbled into this post by Sdr. Andry Huzain. Thought I'll link it here for those who does not browse the C# board. http://www.dofactory.com/Patterns/Patterns.aspx The sites contain Gang of Four Design...