3 ms·
To really bork up the Java, you need a pattern fanatic. Once you stand working with Handler Adapter Handlers you know you should have taken the other colour pi
by Stormbringer 16y ago
To really bork up the Java, you need a pattern fanatic. Once you stand working with Handler Adapter Handlers you know you should have taken the other colour pill.
- klaut 16y agoYes, i remember working for a company (java devs) where at some point we ended up having wrappers around wrappers around wrappers delegating stuff around, factories of factories ... It made your head spin.
- kaylarose 16y agoYes. APIDelegatorInvocationHandler and APIAbstractFactoryFactoryProvider. (actual Java class names)
- dexen 16y agohttp://c2.com/cgi/wiki?PrematureAbstraction http://c2.com/cgi/wiki?PrematureAbstraction a known anti-pattern :)
- Sandman 16y agoWhen you said 'actual Java class name' I thought for a moment that those were actually classes in one of Java's libraries. I googled the names, though, and fortunately, they're not...
- jerf 16y agoI mean this dead seriously: People complain about the abstractions like "Monad" in Haskell, but I'm yet to see anything as abstract and difficult to reason about as a decorator around a facade delegating to an implementation of a factory factory of something probably producing a concrete instance of some other pattern monstrosity.
- Sandman 16y agoDefinitely, but a point should be made that design patterns themselves are not a bad thing, quite the contrary, actually. It's overuse of design patterns that should be a crime. I came across some pretty difficult to understand abstractions, but fortunately nothing like the monstrosity that you described.
- iron_ball 16y agoThat stuff has its place. But it's needed less commonly than it's used.
- kabdib 16y agoWhen you have factories making factories, it's time to hoist the flag, get out the knives and start slitting throats. -- after HL Menkin