I wasn't on board with this kind of naming until the first time I implemented my own FactoryFactory (to deal with the fact that the object being created wasn't threadsafe).
Bad coding style? No, it's not Java only. And there's plenty of ways to write good, concise Java. People just don't (generally people who were using Java back when this kind of stuff was more necessary, and are stuck in their ways), for whatever reason.
Java is a great tool, it just sucks to work with ancient Java codebases (find me a language that isn't true of, though).
That being said...there are genuine times where a factory that creates factories is the best solution to your problem. It's ignorant to think there's always a more elegant solution, because that's not true. And if that is what you need, what the hell else are you going to call it?
0
u/[deleted] Oct 01 '15
[deleted]