Would it break the MVP pattern to hold a large collection of objects in the presentation layer, or would it be better to retreive the information for the view from a datasource (in this case an xml document) as and when an event occurs?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no silver bullet. If you want to provide a quick response – load as much data as you can and as early as possible. If you want to reduce traffic & server payload – use event-driven scenarios. If you’re loading data from local xml document (which is pretty cheap if your xml is not huge) then I do not see much difference – do whatever is more convinient.
I doubt anything more specific can be said.