3 ms·
> No abstract singleton proxy factories I barely see this in the code that I wrote given that I've been writing Java code for ... 8 years? (unless you're writi
by edwinnathaniel 10y ago
> No abstract singleton proxy factories
I barely see this in the code that I wrote given that I've been writing Java code for ... 8 years? (unless you're writing Spring framework itself)
Can we please drop this?
- kelnos 10y ago> Can we please drop this? I would love to agree with that, but I don't think we can. I've been writing Java (well, more recently Scala) for 14+ years, and I still see otherwise great programmers succumb to Java class-itis.
- lacampbell 10y agoI see a lot of bad C# code, but I don't feel the need to make snide comments about C# whenever I see or hear it mentioned. It's pretty clear to me it's not the languages fault. There's nothing in Java forcing you to make deep class hierarchies or leaky abstractions.
- kelnos 10y agoNothing that forces you, sure. But when you have a culture following that language for so long that encourages that, and have existing 3rd-party libraries and an ecosystem that makes it easier to do that... well, that's what happens. Not sure about the GP of my original comment, but I'm not trying to be snide; I just see it everywhere, and it really frustrates me. I don't see it with Scala/C++/python/ruby programmers, so what's the common denominator? The language.
- ungzd 10y agoI even see such constructs in Ruby periodically, including discussions that it's proper engineering that all serious people do. And Angular 1.x is famous example of this in JS. I used Play framework that especially opposes these practices in Java but I felt like language resists such riot attempts.