Factory Overload

added by pwhe23
12/21/2011 11:24:30 AM

3 Kicks, 210 Views

Recently I received a question from Kelly Sommers about good ways to refactor away from Factory Overload. Basically, she’s working in a code base where there’s an explosion of Abstract Factories which seems to be counter-productive. In this post I'll take a look at the example problem and propose a set of alternatives.


2 comments

dpeterson
12/21/2011 11:24:09 AM
It's an interesting article, but I think I'm missing something. What is different between these approaches? What changes based on security/role? That may determine, ultimately, which approach is best.

pwhe23
12/21/2011 11:50:05 AM
Yeah, I think it is certainly a case of *which approach works best for this specific scenario*. One size does *not* fit all :)