News for hackers. Stuff that matters.
Re:Am I Doing it Wrong? by wonderzombie on Friday June 22, 2012 @07:08PM (#4149357)
"OOP scar tissue" is my new favorite phrase.

To add some real value, by this I mean that I've run into this crap a lot. In Java, sometimes I want the ability to have a function which returns other functions based on an input. This is doable in a variety of languages other than Java.

In Java, I didn't call it such, but I ended up writing a FactoryFactory. (I am not proud.) I had one layer of abstraction to produce Foo objects with a certain configuration, and a layer above that to parameterize the creation of a Foo-creator. sigh. Scar tissue indeed.

There are no comments on this comment yet.