Skip to the content.

Home Page

Class 06 Notes

Review, Research, and Discussion

  1. A singleton is an instance of a class that has one single reference to it and only refers to one other object.
  2. The singleton pattern can be used for making linked lists as well as making sure that your data flows one way like the React components we made in 301.
  3. The approach i would take to constructing middleware like express would be to make the information flow in one way. It sounds redundant to be saying this but having learned singletons makes me more prone to using it in the data structures that we are creating.

Terms