Popular recipes tagged "factory"http://code.activestate.com/recipes/tags/factory/popular/2012-06-11T23:31:11-07:00ActiveState Code RecipesA generic factory factory. (Python) 2012-06-11T23:31:11-07:00Eric Snowhttp://code.activestate.com/recipes/users/4177816/http://code.activestate.com/recipes/578165-a-generic-factory-factory/ <p style="color: grey"> Python recipe 578165 by <a href="/recipes/users/4177816/">Eric Snow</a> (<a href="/recipes/tags/factory/">factory</a>). </p> <p>Factories are useful for producing objects without having to store certain data on the objects' type. Instances of this factory class are factories that can produce </p> Maintenance free Factory design pattern (Python) 2009-03-12T08:54:39-07:00Akira Forahttp://code.activestate.com/recipes/users/4114779/http://code.activestate.com/recipes/576687-maintenance-free-factory-design-pattern/ <p style="color: grey"> Python recipe 576687 by <a href="/recipes/users/4114779/">Akira Fora</a> (<a href="/recipes/tags/design/">design</a>, <a href="/recipes/tags/factory/">factory</a>, <a href="/recipes/tags/free/">free</a>, <a href="/recipes/tags/maintenance/">maintenance</a>, <a href="/recipes/tags/pattern/">pattern</a>). Revision 3. </p> <p>An implementation of the Factory design pattern that doesn't require maintenance when a new specialized subclass is added.</p>