Monday, November 12, 2007

Links for 2007-11-12

Blog:
Be not afraid of the Visitor, the big, bad Composite, or their little friend Double Dispatch - The author used StoryTeller project as an example to demonstrate the use of Composite, Double Dispatch, and Visitor pattern. ILeaf interface, implementing Composite pattern, was used in a tree structure. A tree was composed of nodes which were composed of leaves. HTMLWriter class, implementing Visitor pattern, was used in traversing the tree. IHTMLBuilder interface, implementing Double Dispatch pattern, was used in performing action on tree nodes. According to the author,
If you have a need to process an object hierarchy and/or a mixed list of objects, the Visitor and Composite patterns can do a lot for you to control the complexity of dealing with the data structure.

MSDN Article:
Microsoft Sync Framework - I have mentioned about a redundency mechanism before. Recently, MS published its own version. I'm not sure if I can adapt the framework to my system, but the model and the diagram in the introduction are already very helpful to create one oneself.

No comments: