by watwut · 5y ago · 0 comments
The hate for Java is so strongly meme based.
http://mail-archives.apache.org/mod_mbox/ws-xmlrpc-dev/20070...
as well as the mental effort it took me to figure this out – by no metric I would call it "braindead easy".
It is just that thing ... there are patterns that are tedious. The object mapping before hibernate was extremely tedious for example. But factory pattern ... seriously?
> Foo f = new Foo(a, b, c);
Factory:
> FooFactory ff = new FooFactory(); > ff.setA(a); > ff.setB(b); > ff.setC(c); > f = ff.create();
...or the same in XML. Fluent APIs turn it into oneliner, but it's still good only for adding hours to your bill.
Second, factory methods today have arguments combinations too. fd.create(a, b, c) is the most normal thing in the world.
Seriously, this is ridiculous.