IMHO Factory and Singleton can be considered Anti Patterns.
3
1
3
Replying to @PlutonicJ
@cybi @ewolff Singleton yes, but Factory? :)

Jan 8, 2015 · 6:24 PM UTC

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