tag:blogger.com,1999:blog-3760169963830810897.post8603676711488712198..comments2023-03-26T21:00:59.091+01:00Comments on Code Butchering: Are MVP and AJAX a good match?Anonymoushttp://www.blogger.com/profile/13431481971279629409noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3760169963830810897.post-75256517634771480162010-02-04T12:54:23.151+00:002010-02-04T12:54:23.151+00:00Cool, I'm no guru either, as MVC is the only o...Cool, I'm no guru either, as MVC is the only one I've got any experience or knowledge about.Sir Richard Hoarehttps://www.blogger.com/profile/09089938342974440835noreply@blogger.comtag:blogger.com,1999:blog-3760169963830810897.post-81943973536296104852010-01-26T22:55:44.018+00:002010-01-26T22:55:44.018+00:00@ImaginaryDevelopment: From the sound of this you&...@ImaginaryDevelopment: From the sound of this you're actually close to passive, or at least your view doesn't call into the model (but only into the presenter) avoiding the main argument I have against an MVP implementation not being Passive View.<br /><br />Said so, if your AJAX is calling into the presenter, you're most likely calling into static methods, which are returning something to the view and the view inherent behavior (javascript?) knows how to handle that something, meaning that the View is driving its own updates ... which leads me to think still this is not a 'true' passive implementation. <br /><br />This leads me also to conclude - as stated in the post - that for situations such as this (ajax web apps) the supervising controller model it's a better fit (because you can call into the model all you want as long as it's 'deemed appropriate').<br /><br />Keep also in mind that I am no guru - and I am figuring out this stuff as much as yourself. These is at the moment my opinion - but I would welcome anyone who could challenge it with something that makes more sense!Anonymoushttps://www.blogger.com/profile/13431481971279629409noreply@blogger.comtag:blogger.com,1999:blog-3760169963830810897.post-66155340918735820422010-01-26T21:55:36.692+00:002010-01-26T21:55:36.692+00:00maybe I've misunderstood something... but my a...maybe I've misunderstood something... but my ajax calls all call methods on the presenter/controller. so that it is not talking to the service/model layer. Additionally in at least one case, and we may move this direction in more of the ajax, I'm returning a partial view. Did I miss the point and I'm actually not doing passive?Sir Richard Hoarehttps://www.blogger.com/profile/09089938342974440835noreply@blogger.com