Editors and GIN will cope with template reduction.
For example, compare the same screen without and with the Editors.
And when I say that the GIN deals with template reduction, it is only if you are already using dependency injection (DI). If you are not using DI, then well, you probably should .
Like DI, MVP helps to create test code, in particular, on testing presentation logic (not necessarily business logic, not the user interface). For example, it really doesn’t matter how you show something, what matters is that you show the right thing at the right time. One example might be a mistake: it doesn't really matter if they are red at the top of the screen or next to the form field or in the tooltip in the form field, which then turns red; what matters is that you submit the correct set of errors at the right time for viewing. How can I replace or change (and ideally should also be tested), but the same thing.
MVP can also be great at creating multi-factor applications: if the screens can be quite similar between mobile, tablet and desktop computers, then you can use the same presenter with three different views (and where the DI shines!).
As for RequestFactory (RF), this is a different client-server protocol than GWT-RPC, with its own set of functions and limitations. Unless you have a problem with GWT-RPC, you should not switch (although I would recommend that you see what RF is). For me, the main feature of RF is that the protocol (based on JSON) is larger than the API: the classes on the client and server do not have to be the same if they are compatible enough so that the client and server understand each other (add a property, change int to double , etc.); this is a huge difference compared to GWT-RPC, where you will have an error even with very minor and subtle changes in your classes.
But in the end, if it does not break, do not correct it .
Thomas Broyer
source share