Skip to content

Commit 221daf5

Browse files
authored
docs: Add tutorial links for Visitor pattern (iluwatar#525) (iluwatar#1880)
1 parent 90b1b92 commit 221daf5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

visitor/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ Use the Visitor pattern when
214214
* Many distinct and unrelated operations need to be performed on objects in an object structure, and you want to avoid "polluting" their classes with these operations. Visitor lets you keep related operations together by defining them in one class. When the object structure is shared by many applications, use Visitor to put operations in just those applications that need them.
215215
* The classes defining the object structure rarely change, but you often want to define new operations over the structure. Changing the object structure classes requires redefining the interface to all visitors, which is potentially costly. If the object structure classes change often, then it's probably better to define the operations in those classes.
216216

217+
## Tutorials
218+
219+
* [Refactoring Guru](https://refactoring.guru/design-patterns/visitor)
220+
* [Dzone](https://dzone.com/articles/design-patterns-visitor)
221+
* [Sourcemaking](https://sourcemaking.com/design_patterns/visitor)
222+
217223
## Known uses
218224

219225
* [Apache Wicket](https://github.com/apache/wicket) component tree, see [MarkupContainer](https://github.com/apache/wicket/blob/b60ec64d0b50a611a9549809c9ab216f0ffa3ae3/wicket-core/src/main/java/org/apache/wicket/MarkupContainer.java)

0 commit comments

Comments
 (0)