Prakash has blogged a set of links on visitor.
My team had to develop a component using Visitor pattern. Since i have not gone thru this pattern for quite some time, i searched in GOOGLE and found some interesting links.Visitor Defintion:
The visitor pattern allows you to define new, polymorphic operations on a class structure, without touching the source code for the classes themselves. Visitor lets you define a new operation without changing the classes of the elements on which it operates.Useful Links on Visitor Patternhttp://jdj.sys-con.com/read/140105_1.htm
- Are easily modified by the people who most frequently work within them,
- Easily support unexpected changes,
- Are easy to modify and maintain,
- and Prove their value by becoming steadily easier to modify over years of changes and upgrades.
The Source Code is the (Final) Design – Get your hands dirty. Follow your design down to the code.
Don’t Repeat Yourself.
Clarify, Simplify, and Refine.
Fail Fast – TDD
Optimize from Measurements