-
Hot on the heels of my devastatingly fantastic post on an implementation of the Snapshot Pattern , I give you my next piece du resistance . In this little post, I'd like to delve into the Specification Pattern . So what the heck is it? Matt Berther provided a pretty good introduction where he states...
-
Congratulations to Michaël Willemot who is the winner of Challenge 2 ! Michaël has won a copy of Applying Domain-Driven Design and Patterns: With Examples in C# and .NET by Jimmy Nilsson along with a 3-user license pack for CodeIt.Once Refactoring . (The winner was randomly selected from all correct...
-
If you're not familiar with the Refactor It! challenges, please read this post . (Yes, this one is a little late in being published...but it's worth it!) Now on to challenge 2... Welcome back to another refactoring challenge! I'm excited about this week's challenge and am sure it'll be interesting and...
-
Welcome again in the last part of this series. So far we made the extender with bunch of features and then we had migrated to the new ASP.NET AJAX framework. So there only one left to do in order to get fully functional extender. As a current state our course contains the following parts: Introduction...
-
Congratulations to Rune Rystad who is the winner of Challenge 1 ! Rune has won a copy of Framework Design Guidelines by Krzysztof Cwalina and Brad Abrams along with a 3-user license pack for CodeIt.Once Refactoring . (The winner was randomly selected from all correct entries received.) For the record...
-
I thought I'd share a solution and ideas around a problem that seems to come up from time to time in past systems I've built. I'll walk you through the implementation of a modified Snapshot Pattern in C#. First off, what is the Snapshot pattern, and why would we use it? Put simply, a Snapshot is the...
-
Of course if you are using them. Currently almost none is using standard data access methods in bigger projects. All the Data Access Layer (DAL) methods become very popular nowadays, just look at the most popular such as NHibernate, Sooda or the incoming ADO.NET. There is also an old friend among them...
-
For an overview of this contest, read this opening introduction . Now, onto this week's refactoring challenge... As Fowler's subtitle describes, refactoring is about "improving the design of existing code"; an introduction to the subject can be found at refactoring.com . This first challenge includes...
-
Each week, refactor my smelly project and win a free book along with a CodeIt.Once Refactoring tool 3-User license pack! Here's how it'll work ... Each week, beginning tomorrow, Nov. 13, a VS 2005 project will be provided which contains one or more specified "smells." The project may be a Windows App...
-
Welcome in the second and half post in the series dedicated adventures with Atlas Extenders. Originally, this series consist of three parts, but some changes in the world forces me to add one more post into the series: Introduction – what Atlas Extender is and how to create our own validation extender...
-
It's common to populate a drop-down box with enum values or, similarly, to display an enum setting to the user. The problem is that enum values usually aren't very pretty to look at. (Memories of hoping QA wouldn't spot "OrderShipped" come to mind.) In a previous post by Joe Niland...
-
Just a few minutes ago, I was looking for something in the System. Collections.Generic using Reflector. I turned on visibility for Private members in options and then I saw something new, a TreeSet<T>. A few days before I was playing with tree structures, so this class turned my attention. After...
-
Welcome in the second post in the series dedicated adventures with Atlas Extenders. This series consist of three parts: Introduction – what Atlas Extender is and how to create our own validation extender, Page methods – how to add AJAX server-side validation, Integration with page – how to integrate...
-
One for the utility library... Here's a small function I've found to be quite useful recently. It takes an enum type and returns a generic list populated with each enum item. public static List<T> EnumToList<T>() { Type enumType = typeof (T); // Can't use type constraints on value...
-
While working on winning Netflix' million, I came across a need to examine the raw XML returned by a third party web service. After a couple desk-pounding hours, I finally found a simple solution which works equally well in both Web and Windows apps. Install Web Services Enhancements (WSE) 3.0 Add...