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:
Anonymous2005-12-05 6:02
We could keep adding layers for everything. How about a dictionary layer in case we feel like changing the names for everything. How about a number abstraction layer in case we want to change Math axioms. How about a language parser in case we want to change Java.
You need to decide where to stop abstracting with common sense. Most of Java's abstractions waste in development and maintenance far more time than they save in the long term.