Timeline for Does the Factory Pattern violate the Open/Closed Principle?
Current License: CC BY-SA 3.0
20 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 23, 2019 at 5:16 | history | protected | gnat | ||
| Jul 23, 2019 at 5:15 | answer | added | Martin Maat | timeline score: 0 | |
| Jul 22, 2019 at 23:32 | answer | added | hfontanez | timeline score: 7 | |
| Nov 26, 2015 at 9:40 | vote | accept | Armon Safai | ||
| Nov 23, 2015 at 19:16 | history | tweeted | twitter.com/StackProgrammer/status/668870754025512960 | ||
| Nov 23, 2015 at 17:59 | answer | added | AlfredoCasado | timeline score: 1 | |
| Nov 23, 2015 at 16:42 | answer | added | JacquesB | timeline score: 8 | |
| Nov 22, 2015 at 23:11 | history | edited | Armon Safai | CC BY-SA 3.0 | clarified question |
| Nov 17, 2015 at 19:53 | comment | added | Armon Safai | @RobertHarvey I am linking this blog post to show how the factory pattern in that page is using conditionals | |
| Nov 17, 2015 at 19:14 | history | edited | Robert Harvey | CC BY-SA 3.0 | edited title |
| Nov 17, 2015 at 19:00 | comment | added | Robert Harvey | @ArmonSafai: You're linking this blog post a lot, but you're not really explaining why. Are we all somehow ignorant of the pattern? We have Google too, just like you. | |
| Nov 17, 2015 at 18:38 | comment | added | amon | Thanks for that info, this clears up a lot. That is definitively an example of a factory pattern, but not of the Abstract Factory Pattern commonly associated with factory patterns. The code in that article is quite questionable, and I would not expect to see anything like that in real code. | |
| Nov 17, 2015 at 18:33 | history | edited | amon | CC BY-SA 3.0 | added in code for factory with conditionals. Since this is a small quotation, licensing should be OK. |
| Nov 17, 2015 at 17:58 | comment | added | Armon Safai | @amon tutorialspoint.com/design_pattern/factory_pattern.htm | |
| Nov 17, 2015 at 17:58 | history | edited | Armon Safai | CC BY-SA 3.0 | added 140 characters in body |
| Nov 17, 2015 at 11:03 | answer | added | guillaume31 | timeline score: 1 | |
| Nov 17, 2015 at 10:34 | comment | added | amon | Which “factory pattern” are you referring to precisely? In general, a factory is any object or method that serves to instantiate an object. Then there are specific variations of this general idea such as the Abstract Factory Pattern, where each factory instance represents a specific palette of choices – usually managed via subclassing rather than conditionals. | |
| Nov 17, 2015 at 10:27 | answer | added | Kilian Foth | timeline score: 28 | |
| Nov 17, 2015 at 10:26 | answer | added | BЈовић | timeline score: -2 | |
| Nov 17, 2015 at 10:19 | history | asked | Armon Safai | CC BY-SA 3.0 |