Be not afraid of the Visitor, the big, bad Composite, or their little (codebetter.com)
submitted by
schalkvanwyk(1335) 3 years, 7 months ago
Over and over again the Composite and Visitor patterns come up as good solutions to a certain range of problems, but these patterns are often a source of almost superstitious fear to those developers who aren't familiar with them. From past experience developers don't necessarily grok these patterns at the first exposure.
Design patterns that are useful for processing heterogeneous lists and object hierarchies without resorting to an uncontrolled proliferation of "if/then" branches.
|category: Patterns
|Views: 15
tags:
Patterns another
Everyones tags:
Your Tags: