Chapter 15. Building MVP-based applications
This chapter covers
One of GWT’s main selling points is that it allows you to use an industry-grade language, with an industry-grade set of tools, to build, well, industry-grade web applications. But, as with any large-scale development project, you can easily paint yourself into a corner. Far too many times when building GWT-based applications, you may find yourself slinging code wherever necessary to make the application work and (sometimes more important) look good.
This makes your code development and, perhaps worse, your code maintenance a nightmare. No longer are you able to push the boundaries of web applications because you’re spending all of your time and budget fixing bugs and scratching your head wondering why now that it’s fixed here, it’s suddenly all going wrong over there. And why, when you’re trying to add new functionality, it never comes in anywhere near the on-budget number.
Fortunately, these problems have well-known engineering and architectural solutions. One of these is to build your applications around the model-view-presenter (MVP) paradigm (or pattern, if you want to call it that).