reading-notes

Code-Fellows reading notes.

View the Project on GitHub bkasprzyk19/reading-notes

<==Back

Explain what a “Singleton” is (in Computer Science terms)

https://betterprogramming.pub/what-is-a-singleton-2dc38ca08e92

Explain how the Singleton pattern can be used with Node modules, specifically with classes

If you were tasked with building a middleware system like Express uses, what approach might you take to construct/operate it?

http://expressjs.com/en/guide/using-middleware.html

Middleware functions can perform the following tasks:

Router Middleware

http://expressjs.com/en/guide/using-middleware.html#middleware.router

Router-level middleware works in the same way as application-level middleware, except it is bound to an instance of express.Router().

var router = express.Router()

Dynamic Module Loading

https://dev.to/hasnaindev/dynamic-module-pattern-for-javascript-dynamically-load-javascript-bundles-m5c

Singleton Pattern

CRUD -> REST Method Matches

Create = PUT with a new URI POST to a base URI returning a newly created URI Read = GET Update = PUT with an existing URI Delete = DELETE

Mock Testing