5 ms·
Yes, i remember working for a company (java devs) where at some point we ended up having wrappers around wrappers around wrappers delegating stuff around, facto
by klaut 16y ago
Yes, 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.