John McCormack skriver: > Kevin mentions... > "...need to transform the format to fit the view, you would do that in > the controller" > > Henrik mentions... > "The data changing should be done in an adapter that the controller puts > in between the model and the view." > > So the problems arise because the data that isn't quite what the model > stores, or isn't quite what the views use. > > At the same time the controller shouldn't know about requirements of the > model and views, but in this world of isolation and 'not knowing' about > other things we need adapters that do know the details of other parties. > > Do all systems need adapters that convert data into the appropriate format? >
It is fine for the controller to know the identity of the formats involved. But understanding them is probably overkill. A well designed system will often have situations where the view and model use the same format, meaning that there is no need for any adapter. _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders