Click here to Skip to main content
15,888,351 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionGeneral "design patterns" usage questions Pin
MikeTheFid13-Nov-17 12:39
MikeTheFid13-Nov-17 12:39 
AnswerRe: General "design patterns" usage questions Pin
Pete O'Hanlon13-Nov-17 19:55
mvePete O'Hanlon13-Nov-17 19:55 
AnswerRe: General "design patterns" usage questions Pin
Eddy Vluggen13-Nov-17 23:03
professionalEddy Vluggen13-Nov-17 23:03 
AnswerRe: General "design patterns" usage questions Pin
Gerry Schmitz14-Nov-17 4:14
mveGerry Schmitz14-Nov-17 4:14 
GeneralRe: General "design patterns" usage questions Pin
Eddy Vluggen14-Nov-17 5:12
professionalEddy Vluggen14-Nov-17 5:12 
GeneralRe: General "design patterns" usage questions Pin
Gerry Schmitz15-Nov-17 5:54
mveGerry Schmitz15-Nov-17 5:54 
GeneralRe: General "design patterns" usage questions Pin
Eddy Vluggen15-Nov-17 7:26
professionalEddy Vluggen15-Nov-17 7:26 
GeneralRe: General "design patterns" usage questions Pin
jschell15-Nov-17 7:43
jschell15-Nov-17 7:43 
Eddy Vluggen wrote:
You're a developer, after all, and the factory, singleton or decorator aren't a new idea.


Yes, but does that really relate to what GoF defines?

Following is the GoF definition for "Factory Method" (there is no "Factory").

"Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiations to subclasses."

Lets look at "Abstract Factory". The GoF definition.

"Provide an interface for creating families of related or dependent objects without specifying their concrete classes."


When you and/or the Architect says 'Factory' in a design discussion is the idea that it will follow, exactly, the first definition above?

If it helps note that the GoF also says the following about a "Factory Method"

Use the Factory Method pattern when
- a class can't anticipate the class of objects it must create
- a class wants its subclasses to specify the objects it creates
- classes delegate responsibility to one of several helper subclasses and you want to localize the knowledge of which helper subclass is the delegate.


As for myself I am rather certain I follow neither. I expect that I use "Factory" to mean what GoF documents in the "Factory Method" to be 'ConcreteCreator' and I might use "Abstract Factory" in implementation (if I use it at all) as something that more closely resembles what "Factory Method" is. But not exactly.
GeneralRe: General "design patterns" usage questions Pin
Eddy Vluggen15-Nov-17 8:57
professionalEddy Vluggen15-Nov-17 8:57 
GeneralRe: General "design patterns" usage questions Pin
jschell16-Nov-17 11:18
jschell16-Nov-17 11:18 
GeneralRe: General "design patterns" usage questions Pin
Eddy Vluggen17-Nov-17 0:14
professionalEddy Vluggen17-Nov-17 0:14 
GeneralRe: General "design patterns" usage questions Pin
jschell17-Nov-17 12:02
jschell17-Nov-17 12:02 
JokeRe: General "design patterns" usage questions Pin
JustWatchLittle 20-Dec-17 5:46
professionalJustWatchLittle 20-Dec-17 5:46 
GeneralRe: General "design patterns" usage questions Pin
Gerry Schmitz20-Dec-17 5:51
mveGerry Schmitz20-Dec-17 5:51 
AnswerThank you Pin
MikeTheFid15-Nov-17 0:49
MikeTheFid15-Nov-17 0:49 
AnswerRe: General "design patterns" usage questions Pin
jschell15-Nov-17 7:15
jschell15-Nov-17 7:15 
GeneralRe: General "design patterns" usage questions Pin
Eddy Vluggen15-Nov-17 14:57
professionalEddy Vluggen15-Nov-17 14:57 
GeneralRe: General "design patterns" usage questions Pin
jschell16-Nov-17 11:19
jschell16-Nov-17 11:19 
QuestionWhich programing code to use Pin
Member 1346643415-Oct-17 9:37
Member 1346643415-Oct-17 9:37 
GeneralRe: Which programing code to use Pin
PIEBALDconsult15-Oct-17 9:57
mvePIEBALDconsult15-Oct-17 9:57 
QuestionReview DDD solution for a car manufacturing station Pin
Praveen Raghuvanshi1-Oct-17 12:20
professionalPraveen Raghuvanshi1-Oct-17 12:20 
AnswerRe: Review DDD solution for a car manufacturing station Pin
jschell2-Oct-17 11:37
jschell2-Oct-17 11:37 
AnswerRe: Review DDD solution for a car manufacturing station Pin
Gerry Schmitz3-Oct-17 6:56
mveGerry Schmitz3-Oct-17 6:56 
GeneralRe: Review DDD solution for a car manufacturing station Pin
Praveen Raghuvanshi3-Oct-17 22:31
professionalPraveen Raghuvanshi3-Oct-17 22:31 
GeneralRe: Review DDD solution for a car manufacturing station Pin
Gerry Schmitz4-Oct-17 6:16
mveGerry Schmitz4-Oct-17 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.