Software Development

TwitterFacebook
Get flash to fully experience Pearltrees
http://www.codeproject.com/Articles/3342/Illustrated-GOF-Design-Patterns-in-C-Part-VI-Behav

Illustrated GOF Design Patterns in C# Part VI: Behavioral III -

Abstract Design Patterns, Elements of Reusable Object-Oriented Software by Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides [also known as the Gang of Four (GOF)] has been a de facto reference for any Object-Oriented software developer. This article is the conclusion of a series of articles illustrating the GOF Design Patterns in C#.
From Pattern Repository Wiki Motivation You have redundant structure in the forms of switches spread across several existing classes and methods. All the cases in each switch are tightly coupled to the fact that you have a particular situation to handle (typically an object of a particular type). There are many problems with this.

TheStrategyTemplatePattern - Pattern Repository Wiki

http://www.netobjectivestest.com/PatternRepository/index.php?title=TheStrategyTemplatePattern
http://blog.objectmentor.com/articles/2008/12/31/refactoring-finds-dead-code

Refactoring Finds Dead Code

One of the many things that I just love about my job as a consultant/mentor is when I actually get to sit down with programmers and pair program with them. This doesn’t seem to happen nearly as often as I would like, so when two developers at a recent client site asked me if I could look at some legacy code to see if I could figure out how to get some tests around it, I jumped at the opportunity. We acquired a room equipped with a projector and a whiteboard. A laptop was connected to the projector and we were all able to comfortably view the code. I visit a lot of different companies and see a lot of absolutely ghastly code. What I was looking at here wasn’t all that bad.