3 ms·
Yeah, that's a fair point. I think factories and beans are a sign that object construction in Java is a mess. In the applications I work with, most calls to "n
by cousin_it 9y ago
Yeah, that's a fair point.
I think factories and beans are a sign that object construction in Java is a mess. In the applications I work with, most calls to "new" are dealing with data structures (lists, maps, protocol buffers), and behavior-heavy business objects are a mostly static call graph. Not sure if there's a name for this pattern though.