filmov
tv
Javascript Design Patterns #8 - Visitor Pattern
![preview_player](https://i.ytimg.com/vi/x-Gx0Ym1Di0/maxresdefault.jpg)
Показать описание
What is the Visitor pattern?
The Visitor pattern allows you to add or define new functionality to an object without changing the code for that object. The new logic resides in a external object or function called the 'visitor'.
Visitors are useful when you are trying to extend the functionality of a library or framework. If the object you want to extend provides some kind of 'accept' method that accepts a visitor object/function, you can grant the visitor object access to the receiving object's internal properties. The visitor can then modify the behavior of the receiving object. This pattern allows you to provide an easy way for clients to implement future extensions to that object.
📚Materials/References:
🌎 Find Me Here:
The Visitor pattern allows you to add or define new functionality to an object without changing the code for that object. The new logic resides in a external object or function called the 'visitor'.
Visitors are useful when you are trying to extend the functionality of a library or framework. If the object you want to extend provides some kind of 'accept' method that accepts a visitor object/function, you can grant the visitor object access to the receiving object's internal properties. The visitor can then modify the behavior of the receiving object. This pattern allows you to provide an easy way for clients to implement future extensions to that object.
📚Materials/References:
🌎 Find Me Here:
Javascript Design Patterns #8 - Visitor Pattern
10 Design Patterns Explained in 10 Minutes
8 Design Patterns EVERY Developer Should Know
8 Design Patterns | Prime Reacts
JavaScript Паттерны #9 - Adapter (Адаптер)
Javascript Design Patterns #1 - Factory Pattern
5 Design Patterns Every Engineer Should Know
5 Design Patterns That Are ACTUALLY Used By Developers
Adapter Pattern – Design Patterns (ep 8)
Singleton Pattern - Design Patterns in JavaScript
More Ideas - JavaScript Design Patterns
Builder Pattern - Design Patterns
JavaScript Design Patterns #10 - Builder Pattern
Singleton Pattern - Design Patterns
01 JavaScript Design Patterns: Introduction
JavaScript Design Patterns: Creating Objects with Literals
Design Patterns in Plain English | Mosh Hamedani
Javascript Design Pattern 2023 : Builder Pattern
Javascript Design Patterns 2023 : Factory Pattern
JavaScript Паттерны #5 - Builder (Строитель)
Javascript Design Patterns #3 - Strategy Pattern
JavaScript Marathon | Design Patterns in JavaScript (And How They Can Clean Up Your Code)
Observer Design Pattern Use Cases and Examples! #shorts
Design patterns in React
Комментарии