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

Design and Architecture

 
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 
GeneralRe: General "design patterns" usage questions Pin
Eddy Vluggen15-Nov-17 8:57
professionalEddy Vluggen15-Nov-17 8:57 
jschell wrote:

Yes, but does that really relate to what GoF defines?
I'd seriously wouldn't know, I don't go there often Smile | :)

jschell wrote:

When you and/or the Architect says 'Factory' in a design discussion is the idea that it will follow, exactly, the first definition above?
No, just the generic idea, otherwise he would specify exactly what the requirements are. If he doesn't, then it is up to the developer to choose the most appropriate solution - which usually means going for the simplest thing possible (whilst still only returning an interface).

..but when in doubt, simply ask Thumbs Up | :thumbsup:

jschell wrote:
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.
Depends heavily on what is required; do you want a static factory, a singleton, or would you prefer an object? If it has to be combined with an object-manager pattern, then I'd think that the object is preferred. Do you want one object, or do you want multiple objects? In the first case, all objects created in the factory will be available over the manager globally. In the second case, only those objects are available that the specific factory created (in that thread).

Point is, you don't want to explain how a "single point of creation in code" can save you from having to update a 1000 references in code where there's normally a "new"-keyword. That's the problem that a factory solves, with the trade-off that one introduces a tiny bit of overhead (in terms of execution).

It is not just something you learn to impress during the interview, they're simply descriptions of a way to solve something. Lots of "developers" here would struggle with a undo/redo pattern, while others simply request a memento-pattern.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

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 
QuestionUnable to connect SSMS to an Azure SQL server Pin
Stephen Holdorf28-Sep-17 13:48
Stephen Holdorf28-Sep-17 13:48 

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.