Notes for Codefellows Code 401 301 201 and 102
“A software design pattern that restricts the installation of a class to a single instance”
A Singleton Class is defined as only one instance of the class is created in the complete execution of a program or project. It is used where only a single instance of a class is required to control the action throughout the execution. A singleton class shouldn’t have multiple instances in any case and at any cost.
first figure out what I need my middleware to do. Authorization, Logging, data scrubbing,… Then whiteboard out a system.
Router is used to manage incoming requests coming from the middleware. It routes your requests to the correct handler/code.
“A mechanism by which a computer program can, run, load a library (or other binary) 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.”
In software engineering, the singleton pattern is a software design pattern that restricts the instantiation of a class to one “single” instance. This is useful when exactly one object is needed to coordinate actions across the system. The term comes from the mathematical concept of a singleton
Create -> POST Read -> GET Update -> PUT Delete -> DELETE
an approach to unit testing that lets you make assertions about how the code under test is interacting with other system modules.
singleton, crud, authorization
hashing, encrytption, authorization, password rest
hashing, encrytption, authorization, password rest