IMHO Factory and Singleton can be considered Anti Patterns.
3
1
3
@cybi @ewolff Singleton yes, but Factory? :)
1
@stilkov @cybi Everyone know the Factory and the Factory know all products -> dependency nightmare. Replaced by Dependency Injection.
2
1
Replying to @ewolff
@ewolff @cybi I don’t agree. A Factory can be part of a well-structured OO program that doesn’t use a DI framework.

Jan 8, 2015 · 9:13 PM UTC

1
3
Replying to @stilkov
@ewolff @cybi Given the fact that some projects use DI with the "one-solutions-fits-every-problem" approach, I can only agree with @stilkov.