3 ms·
Every time I read about Java developers and their love of Factories (and Factory Factories) I think of this wonderful comment on Joel on Software: http://discu
by arethuza 15y ago
Every time I read about Java developers and their love of Factories (and Factory Factories) I think of this wonderful comment on Joel on Software:
http://discuss.joelonsoftware.com/default.asp?joel.3.219431 http://discuss.joelonsoftware.com/default.asp?joel.3.219431
NB Factories are one of these things that seem like a good idea in theory, but often seem to end up with crazy levels of abstraction in practice.
- fraserharris 15y agoA message I received from a friend working at Google: "New layers, more layers, bigger layers, better layers, abstract layers, injected layers, factory layers, module layers, AbstractFactoryFactoryModuleBuilderInjector layers, layers upon layers within layers wrapped in layers, a glorious spire of layers to reach the heavens and bring renown to Babylon! Hellelujah!"
- Ingaz 15y agoFactories is not bad in practice. Essentially closures, curried functions, partial evaluated is the same thing: code that generate code. I'm not a java developer
- nl 15y agoThere is no doubt that there is a culture of abstraction stupidity in Java (although it isn't as bad as it used to be), and yes, I agree that a FactoryFactory is a code smell. That doesn't make factories bad.