logoalt Hacker News

throwaway7375yesterday at 11:11 PM0 repliesview on HN

Once you start writing adapters you need a way to instantiate them to choose between implementations, and factories is often used for this. Then you might generalize the test suites to make the setup easier and you end up with the infamous FactoryFactory pattern.