http://journal.stuffwithstuff.com/2010/09/18/futureproofing-...
Factories, for example. They're essentially just constructors. So why not use the new keyword? Turns out new has limitations:
- Dependency on the constructed type at the ABI level
- Cannot return subtypes of the constructed type
- Special keyword, not orthogonal with the rest of the language
Singletons, for example. They're essentially classes with static methods and state. Why not use these language features instead of coming up with incredibly convoluted ways to ensure only a single instance of an object has been created? Turns out classes have limitations: - Classes aren't objects
- Classes cannot be passed as parameters
- Classes cannot implement interfaces
The need for all of these patterns simply disappears in a better designed language. In Ruby for example everyone uses factory methods without even realizing it and classes are fully featured objects that can be used in any context.