Singleton & Factory Patterns With TypeScript
The singleton and factory design pattern, implemented with TypeScript. Explained with a hairdresser and an ice creams shop examples.
Published in
4 min readJul 26, 2021
Of all the design patterns I learned in engineering school, the singleton and factory are probably those I use the most in my day-to-day programming activities…