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...
Publisher / Subscriber Pattern
This Lesson teaches the Publisher / Subscriber pattern, which is used to allow modules to communicate with eachother without hard dependencies. It is a great pattern for decoupling modules in your program
It is very...
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...
Observer Pattern
closely related to pubsub pattern, in fact, many people think of pubsub as a special use of the observer pattern
difference is that pubsub create global message buss for communication between components, while observer is...
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...
Factory Pattern
The factory pattern consists of a collection of objects, a factory, and a client that requires instances of the objects. The client controls the process, but is decoupled from the actual construction of...
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...
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...
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
...