Click here to Skip to main content
15,921,169 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: MVC Pattern question Pin
led mike16-Jun-09 11:48
led mike16-Jun-09 11:48 
GeneralRe: MVC Pattern question Pin
Quake2Player16-Jun-09 12:16
Quake2Player16-Jun-09 12:16 
GeneralRe: MVC Pattern question Pin
led mike17-Jun-09 4:50
led mike17-Jun-09 4:50 
AnswerRe: MVC Pattern question Pin
Leslie Sanford18-Jun-09 7:50
Leslie Sanford18-Jun-09 7:50 
GeneralRe: MVC Pattern question Pin
Quake2Player18-Jun-09 8:17
Quake2Player18-Jun-09 8:17 
GeneralRe: MVC Pattern question Pin
Leslie Sanford18-Jun-09 8:21
Leslie Sanford18-Jun-09 8:21 
GeneralRe: MVC Pattern question Pin
Quake2Player18-Jun-09 8:30
Quake2Player18-Jun-09 8:30 
GeneralRe: MVC Pattern question Pin
Leslie Sanford18-Jun-09 8:59
Leslie Sanford18-Jun-09 8:59 
Quake2Player wrote:
Any opinion about the second thing, SHOWING/DISPLAYING ?

(a) The form uses the Tag property of controls to contain the objects from the model (for example an Account in a ListViewItem' tag)

(b) The form uses the Tag property of contrls to contain an identifier of the object of the model (for example an Account id)


I'd prefer (b) for the same reason. That way the objects stay inside the model where they belong; the view has no direct knowledge of them. If they change structure at some point, it's less likely to affect the view.

This is just my opinion...

The boundaries of each subsystem, in this case the model, view, and controller, should appear as flat as possible to each other. That is to say each subsystem has a nice, flat API that the other subsystems can access. So instead of something like this, for example:

SomeObject obj = model.GetSomeObject(int id);

obj.SetValue(123);


You have this:

model.SetValue(id, value);


In the second example we have no knowledge how the model represents the values inside. All we want to do is set the values or whatever.
AnswerRe: MVC Pattern question Pin
CodingYoshi7-Jul-09 17:28
CodingYoshi7-Jul-09 17:28 
GeneralRe: MVC Pattern question Pin
Quake2Player7-Jul-09 17:37
Quake2Player7-Jul-09 17:37 
QuestionClient Server Protocol Definition - Best Practices Pin
Member 404718314-Jun-09 17:16
Member 404718314-Jun-09 17:16 
AnswerRe: Client Server Protocol Definition - Best Practices Pin
Jimmanuel15-Jun-09 0:40
Jimmanuel15-Jun-09 0:40 
AnswerRe: Client Server Protocol Definition - Best Practices Pin
led mike15-Jun-09 4:28
led mike15-Jun-09 4:28 
QuestionI have a couple of design issues Pin
Mycroft Holmes13-Jun-09 15:54
professionalMycroft Holmes13-Jun-09 15:54 
AnswerRe: I have a couple of design issues Pin
CodingYoshi11-Jul-09 9:24
CodingYoshi11-Jul-09 9:24 
GeneralRe: I have a couple of design issues Pin
Mycroft Holmes11-Jul-09 14:56
professionalMycroft Holmes11-Jul-09 14:56 
GeneralRe: I have a couple of design issues Pin
CodingYoshi13-Jul-09 3:35
CodingYoshi13-Jul-09 3:35 
GeneralRe: I have a couple of design issues Pin
Mycroft Holmes13-Jul-09 14:37
professionalMycroft Holmes13-Jul-09 14:37 
QuestionGod object problem Pin
Quake2Player9-Jun-09 13:50
Quake2Player9-Jun-09 13:50 
AnswerRe: God object problem Pin
Mycroft Holmes9-Jun-09 14:50
professionalMycroft Holmes9-Jun-09 14:50 
GeneralRe: God object problem Pin
Quake2Player9-Jun-09 14:58
Quake2Player9-Jun-09 14:58 
GeneralRe: God object problem Pin
Mycroft Holmes9-Jun-09 15:53
professionalMycroft Holmes9-Jun-09 15:53 
AnswerRe: God object problem Pin
CodingYoshi13-Jul-09 3:40
CodingYoshi13-Jul-09 3:40 
QuestionRS232 protocol Pin
AlecJames4-Jun-09 23:04
AlecJames4-Jun-09 23:04 
AnswerRe: RS232 protocol Pin
led mike5-Jun-09 4:21
led mike5-Jun-09 4:21 

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.