Design Patterns a Deep Dive Into…

Design Patterns are documented solution to commonly occurring problems in software engineering. Engineers don’t have to bang their heads on the problems that someone else has already solved. — Ankita Masand, a JavaScript Enthusiast

Design Patterns can be broken apart into 3 categories Creational, Structural, and Behavioral. Creational is for handling Object creation mechanisms. Structural is for identifying ways to realize relationships between objects. Finally Behavioral is for handling communication between different objects.

  1. How can it be ensured that a class has only one instance?
  2. How can the sole instance of a class be accessed easily?
  3. How can a class control its instantiation?
  4. How can the number of instances of a class be restricted?
  5. How can a global variable be accessed?



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store