Singleton & Factory Patterns With TypeScript

The singleton and factory design pattern, implemented with TypeScript. Explained with a hairdresser and an ice creams shop examples.

David Dal Busco
JavaScript in Plain English
4 min readJul 26, 2021

--

Eisvogel — The best ice creams in Zürich

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…

--

--