Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Factory classes

Name: Anonymous 2005-11-17 4:09

Can somebody explain what are factory classes good for? As in, "why all this shit"? I have the impression factory classes are yet another suit in the Emperor's wardrobe. To me, they always looked like some bored programmer who needs to keep his job and hates the KISS principle decided to make our lives worse.

Name: Anonymous 2005-12-05 1:59

Getting back to Factory Classes...

The biggest advantage is to insulate one layer of code from changes in another.  The user of the factory doesn't need to know anything except the virtual interface of the factory.  As new items are added to the factory,  clients of the class don't have to be re-compiled.  A major win if you are building a large system.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List