Technology

JavaScript – Prototype Pattern

GitHub Code The Prototype pattern enables cloning of an existing object into another.  This is not what I was expecting when I first read the name.  As I understand it, there is one object definition with instances representing the differences.  More specifically, a car is the object definition and each ‘instance’ represents a separate and… Continue reading JavaScript – Prototype Pattern

Technology

JavaScript – Chain Of Responsibility Pattern

GitHub Code The Chain Of Responsibility pattern serves as a pipeline through which any number of requests can be passed, but in a series of linked objects.  Very similar in concept to a linked list, each request is called and processed when its predecessor is done.  The ‘chain’ ends when the final request has been… Continue reading JavaScript – Chain Of Responsibility Pattern