reading-notes

code fellows reading notes

View on GitHub

Reading-Notes

code fellows 401

Read: 06 - Authentication

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

A singleton is a software design pattern that restricts the instantiation of a class to one “single” instance.

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?

Vocab:

Router Middleware: a piece of code that comes in the middle of request and response .

Dynamic Module Loading: When a computer can load a library into memory, retrieve the addresses of functions and variables contained in the library, execute those functions or access those variables, and unload the library from memory.

Singleton Pattern: a software design pattern that restricts the instantiation of a class to one “single” instance.

CRUD -> REST Method Matches:

Mock Testing: creating a fake version of an external or internal service that can stand in for the real one.