Nairi Harutyunyan
Big fan of JavaScript
Restricts the instantiation of a class to one single* instance
Creates objects without specifying the exact class
Similar to a singleton, it has only one instance and exposes its members, but it doesn’t have any kind of internal state
Allows to create multiple instances of the same script or plugin
Allows us to us access the functionality of an object using a different interface
methodA()
methodB()
methodD()
methodC()
Encapsulates an algorithm inside a class/function separating the selection from the implementation
A way of notifying change to a number of Subjects
A way of publishing notification to a number of subscribers
Encapsulate a command request as an object to enable, logging and/or queuing of requests, and provides error-handling for unhandled requests
Functions that have access to the request object {req}, the response object {res}, and the (next) middleware function
request {}
response {}
next ()
request {}
response {}
next ()
request {}
response {}
next ()
Error ...
response object
response object
By Nairi Harutyunyan