DEV Community

Discussion on: Design Patterns for Developers using JavaScript - Part One

Collapse
 
alexwaweru profile image
Alex Njoroge waweru • Edited

This pretty good Oliver. I would love to add that design patterns help developers isolate the "vectors of change" in their systems. Developers find the most important thing that changes in their systems and put it away. Once developers find the vector of change in their system, they have the focal point around which to structure their design. For example if your most important thing is to limit the number of instances of the class to one, the singleton pattern is the most elegant solution for you.