Talk:Factory pattern
This redirect does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||
|
Untitled
[edit]Needs a class diagram at the top. Should also emphasise the Factory ability to determine the type of object to construct at run time. —Preceding unsigned comment added by 88.105.164.113 (talk) 19:45, 12 March 2010 (UTC)
Bad example
[edit]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).
Capitalization
[edit]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)
- 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)
- 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)
Merge with Factory object
[edit]- The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
- The result was merge into Factory method pattern PAGE. -- Zero4573 (talk) 16:33, 17 February 2011 (UTC)
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)
- 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)
- Yes, please merge. For finding the page, setting up suitable redirects should help. GyroMagician (talk) 11:24, 13 December 2009 (UTC)
- 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)
- As there are several possibilities to implement the concept of a factory, (the GoF "Factory Method Pattern" is just one of them, there are more) I would rename this article as Factory (Software concept) and I would link from here to the several patterns that implement the concept.--Juansempere (talk) 11:31, 3 March 2010 (UTC)
What is it?
[edit]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)
Java Example overly complex
[edit]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) —Preceding undated comment added 13:36, 13 February 2010 (UTC).
Agreed! 130.237.4.164 (talk) 13:51, 24 March 2010 (UTC)
- Agreed. The use of an adapter pattern is unrelated to the use of Factory pattern, and serves only to make the factory example unclear. --159.53.78.140 (talk) 15:03, 3 June 2010 (UTC)
- Thirded. Who the hell thought the best way to cover a subject in an encyclopedia was to dump a huge block of complex uncommented code in without a single word of explanation? 68.33.168.195 (talk) 13:01, 2 October 2010 (UTC)
- Fourthed. The example code is crazy. --76.10.142.106 (talk) 19:07, 25 November 2010 (UTC)
- Fifthed. Java code is horrible.
Redirect to Factory method pattern instead?
[edit]Why does this page redirect to Factory (object-oriented programming) and not to Factory method pattern? Isn't it more likely that the reader means the latter of these two when searching for "Factory pattern"? —Kri (talk) 14:10, 15 December 2015 (UTC)