Nice article, but adding Factory or Interface would have been a better choice than Singleton. Reason is that Singleton easily becomes an anti pattern: all too often programmers use it to easily access to all objects of a classes of which they only need one instance, effectively creating global variables. There are positive and negative consequences for each design pattern, which youโ€™ve skipped over too easily here.

CEO at Schinchoku and software architect at Delphino Consultancy B.V. โ€” writing about software, and about the Shinchoku startup.