Jump to content

Talk:Factory pattern

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 99.236.204.143 (talk) at 13:36, 13 February 2010 (Java Example overly complex: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconComputer science Redirect‑class
WikiProject iconThis redirect is within the scope of WikiProject Computer science, a collaborative effort to improve the coverage of Computer science related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
RedirectThis redirect does not require a rating on Wikipedia's content assessment scale.
Things you can help WikiProject Computer science with:

Bad example

In Python, `class' cannot be a variable name, and I'm really unsure of what the code is trying to do. Removing it until someone can figure out a better solution. Andrey (talk) —Preceding undated comment added 05:27, 30 August 2009 (UTC).[reply]

Capitalization

Should the P in "factory pattern" really be capitalised? Design pattern (computer science), command pattern, interpreter pattern etc. are all lower case and I believe that those articles are correctly named with regards to Wikiedpia's naming guidelines. PaulBoxley (talk) 10:57, 4 February 2008 (UTC)[reply]

No, it really should not be capitalised. Good eye! I will make the change as soon as I figure out how to do it. E James (talk) 15:39, 4 February 2008 (UTC)[reply]
OK, I added the Db-move template according to the instructions found in the requested moves article. The page was moved almost instantly. E James (talk) 16:21, 4 February 2008 (UTC)[reply]

Merge with Factory object

Seem to be about the same thing. – gpvos (talk) 16:49, 23 March 2009 (UTC)

Both articles (factory pattern and factory object) should be merged with Factory method pattern. Or at least, the difference between "factory pattern" and "factory method pattern" should be mentioned and explained. Terrestria (talk) 15:41, 26 September 2009 (UTC)[reply]
Yes - two articles talk about the same design pattern . Please merge.

If you do make sure folk like me can still find things. It was bad enough searching to see what an 'object factory' was, and concluding it must be the same as a 'factory object', without hiding it further in 'factory pattern'. —Preceding unsigned comment added by 149.254.120.136 (talk) 16:58, 24 November 2009 (UTC)[reply]

Yes, please merge. For finding the page, setting up suitable redirects should help. GyroMagician (talk) 11:24, 13 December 2009 (UTC)[reply]
In the "bible" book of Design Patterns by the Gang of Four, they do not define the "Factory Pattern". They define the "Factory Method Pattern". —Preceding unsigned comment added by 137.132.250.13 (talk) 05:14, 18 January 2010 (UTC)[reply]

What is it?

Article "beats around the bush" by discussing problems in creating objects, but never says precisely what Factory pattern is and how it solves those problems. —Preceding unsigned comment added by 208.127.236.194 (talk) 14:39, 14 August 2009 (UTC)[reply]

Java Example overly complex

The Java example is unnecessarily complex. The example has capabilities above what is necessary to implement factory pattern and this obscures the parts of the pattern that are relevant. It should only show the use of factory pattern without extraneous extensions to the basic pattern. 99.236.204.143 (talk)