News for hackers. Stuff that matters.
Re:The worst program I ever worked on by Stormbringer on Wednesday March 16, 2011 @06:19AM (#2331486)
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.
Re:The worst program I ever worked on by kabdib on Wednesday March 16, 2011 @11:35AM (#2332418)
When you have factories making factories, it's time to hoist the flag, get out the knives and start slitting throats.

-- after HL Menkin

Re:The worst program I ever worked on by klaut on Wednesday March 16, 2011 @07:52AM (#2331653)
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.
Re:The worst program I ever worked on by jerf on Wednesday March 16, 2011 @11:26AM (#2332377)
I 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.
Re:The worst program I ever worked on by Sandman on Wednesday March 16, 2011 @12:33PM (#2332691)
Definitely, 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.
Re:The worst program I ever worked on by kaylarose on Wednesday March 16, 2011 @09:04AM (#2331826)
Yes. APIDelegatorInvocationHandler and APIAbstractFactoryFactoryProvider. (actual Java class names)
Re:The worst program I ever worked on by Sandman on Wednesday March 16, 2011 @12:27PM (#2332670)
When 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...
Re:The worst program I ever worked on by dexen on Wednesday March 16, 2011 @10:15AM (#2332066)
Re:The worst program I ever worked on by iron_ball on Wednesday March 16, 2011 @09:45AM (#2331948)
That stuff has its place. But it's needed less commonly than it's used.