Re:Canada's Pitch to Tech Entrepreneur: We'll Pay 80% of You...
by MichaelGG on Wednesday May 28, 2014 @02:10AM
(#7808626)
Maybe it's because I don't know Java, but the complete separation of interface for "ImmutableBagFactory" and an implementation "ImmutableBagFactoryImpl", and the fact you need a factory for an "ImmutableBag" in the first place... seems like very poor design. Even if it is common in Java (?).
[ Parent
| on HN ]
Re:Canada's Pitch to Tech Entrepreneur: We'll Pay 80% of You...
by lmm on Wednesday May 28, 2014 @05:28AM
(#7809067)
Given that constructors can't conform to interfaces, if you want to be able to pass a constructor around you pretty much have to do this. I agree it's probably overkill, but if you wanted really strong compatibility guarantees I can see how this would make sense.