Visitor Pattern

Visitor pattern defines mechanism to apply operations on nodes in hierarchy. New operations can be added without altering the node interface.

Mình thấy trong Visitor có dùng: Bridge, Chain, nhưng mình ko mấy gì thích pattern này, thấy nó dư thừa và vi phạm I(Interface segregation) trong SOLID.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s