Click here to Skip to main content
15,916,293 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Do I need to use ICC A117.1-2017 standards? Pin
Richard MacCutchan16-Jun-23 0:22
mveRichard MacCutchan16-Jun-23 0:22 
AnswerRe: Do I need to use ICC A117.1-2017 standards? Pin
Dave Kreskowiak16-Jun-23 5:11
mveDave Kreskowiak16-Jun-23 5:11 
GeneralRe: Do I need to use ICC A117.1-2017 standards? Pin
jschell16-Jun-23 10:01
jschell16-Jun-23 10:01 
AnswerRe: Do I need to use ICC A117.1-2017 standards? Pin
jschell16-Jun-23 10:06
jschell16-Jun-23 10:06 
QuestionHow to design a UX-UI Website ? Pin
RochaMartinez66831-May-23 23:13
RochaMartinez66831-May-23 23:13 
AnswerRe: How to design a UX-UI Website ? Pin
Gerry Schmitz1-Jun-23 5:02
mveGerry Schmitz1-Jun-23 5:02 
AnswerRe: How to design a UX-UI Website ? Pin
Shashank Sharma 20237-Jun-23 23:50
professionalShashank Sharma 20237-Jun-23 23:50 
QuestionObject Creation - Whose Responsibility Pin
Richard Andrew x6417-May-23 14:25
professionalRichard Andrew x6417-May-23 14:25 
I have a class A whose instances contain a few class B's, and a few class C's. The objects are all constructed from database records, one record representing a single A, B or C. The objects are read from the database and created at application startup.

The problem is that I can't decide between different instance creation strategies.

-- Should I call a single method of class A, and have A construct all of its contained B's and C's?
-- Should I have a separate factory class construct all three classes and set which objects are contained by which other objects?
-- Or maybe a factory class that constructs A, and in turn A constructs its B's and C's?

Which pattern is most preferred? Perhaps one I haven't mentioned?



The difficult we do right away...
...the impossible takes slightly longer.

AnswerRe: Object Creation - Whose Responsibility Pin
Gerry Schmitz17-May-23 17:50
mveGerry Schmitz17-May-23 17:50 
GeneralRe: Object Creation - Whose Responsibility Pin
Richard Andrew x6418-May-23 14:10
professionalRichard Andrew x6418-May-23 14:10 
GeneralRe: Object Creation - Whose Responsibility Pin
Gerry Schmitz18-May-23 18:48
mveGerry Schmitz18-May-23 18:48 
GeneralRe: Object Creation - Whose Responsibility Pin
Eddy Vluggen20-May-23 3:20
professionalEddy Vluggen20-May-23 3:20 
AnswerRe: Object Creation - Whose Responsibility Pin
jschell19-May-23 7:52
jschell19-May-23 7:52 
GeneralRe: Object Creation - Whose Responsibility Pin
Richard Andrew x6420-May-23 3:26
professionalRichard Andrew x6420-May-23 3:26 
QuestionBest Java dashboard library with React JS Pin
senthil kumar Apr20232-Apr-23 2:39
senthil kumar Apr20232-Apr-23 2:39 
AnswerRe: Best Java dashboard library with React JS Pin
jschell18-May-23 6:00
jschell18-May-23 6:00 
QuestionApp Update Framework Pin
Kevin Marois14-Mar-23 6:37
professionalKevin Marois14-Mar-23 6:37 
AnswerRe: App Update Framework Pin
jschell17-Apr-23 6:00
jschell17-Apr-23 6:00 
AnswerRe: App Update Framework Pin
Mycroft Holmes17-Apr-23 12:41
professionalMycroft Holmes17-Apr-23 12:41 
QuestionProject - develop a classified ads website Pin
Charlotte Dunand14-Mar-23 1:15
Charlotte Dunand14-Mar-23 1:15 
AnswerRe: Project - develop a classified ads website Pin
jschell16-Mar-23 11:10
jschell16-Mar-23 11:10 
QuestionHow do you like them PIMPLs Pin
Mircea Neacsu5-Mar-23 15:36
Mircea Neacsu5-Mar-23 15:36 
AnswerRe: How do you like them PIMPLs Pin
jschell16-Mar-23 11:20
jschell16-Mar-23 11:20 
GeneralRe: How do you like them PIMPLs Pin
Mircea Neacsu16-Mar-23 15:05
Mircea Neacsu16-Mar-23 15:05 
GeneralRe: How do you like them PIMPLs Pin
jschell20-Mar-23 6:25
jschell20-Mar-23 6:25 

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.