Proxy Pattern
The Proxy pattern uses one object as the interface for another object
It sits between users or clients of the object and the object itself
client makes request to proxy, proxy makes request to...
Composite Pattern
Used to treat single objects or collections of objects in the same way
Compositions are used to create nested structures of nodes
a node may be a single node (leaf) or a container of nodes
...
Adapter Pattern
Used to convert one interface to another
an objects interface is the method and properties exposed by the object, what we use to interact with the object
useful pattern when something changes and...
Decorator Pattern
Structural pattern used to add new functionality to existing objects
using JavaScript we can extend classes whenever we want, but the decorator pattern is still used to minimize the amount of sub-classes we will...
Facade Pattern
The facade is a simple interface that is shown to the public to hide the complexity of the underlying system
they conceal the implementation
It is a structural pattern that simplifies the use of...
Speech Synthesis API
Here is a brand new addition to browser API's, the Speech Synthesis API. It is used to make the browser read text out loud to the viewer, and can be implemented for many different...
Iterator Pattern
Javascript itself has iteration built into the language
there are a number of for and forEach methods to iterate through arrays
we have the forIn loop to iterate through objects
Iterator pattern is different as it doesn't...
Mediator Pattern
Situation: If you have multiple independent modules that work in a system (parts of a web page or a user interface system) and they must be kept seperate from eachother and aren't allowed...
Chain of Responsibility Pattern
Features a request sender and one or more request handlers that form a chain
the request sender passes the request to the first handler in the chain
the...