JavaScript Design Patterns: The Singleton
Samier Saeed walks you through the best way to implement a singleton in JavaScript and examines how that has evolved with the rise of ES6.
Samier Saeed walks you through the best way to implement a singleton in JavaScript and examines how that has evolved with the rise of ES6.
Design patterns help us write cleaner code that's easier to share, maintain and upgrade. But are they all used properly? One of the most abused ones is MVC.