Author: Jack Tripper | Posted on: 10/10/2007 8:27:18 PM | Views : 285

Why Model-View-Controller/Model-View-Presenter? What problem does it solve? i've written quite a few large business applications, and seem to have had an easy time of it - all without MVP/MVC.

� 

Jean-Paul Boodhoo writes:


Why is it bad to have lots of logic in the UI layer? The code in the UI layer of an application is very difficult to test without either running the application manually or maintaining ugly UI runner scripts that automate the execution of UI components. While this is a big problem in itself, an even bigger problem is the reams of code that are duplicated between common views in an application. It can often be hard to see good candidates for refactoring when the logic to perform a specific business function is copied among different pieces in the UI layer. The MV ...

Go to the complete details ...