On 17 sep, 12:34, Luciano Broussal <[EMAIL PROTECTED]> wrote: > Hi All, > > I've created a tiny but powerful gwt project > > The Goal is to provide a MVC framework based on the simple, well > designed and powerful PureMVC framework.
I didn't know PureMVC, and I'm not very familiar with MVC either (well, I know the basics but I'm far from being "used to MVC"), but after throwing an eye at the puremvc "overview" docs and at your code (loginsample and then some of the framework's classes), it seems like I was having a similar idea for the next "big rewrite" of our GWT app: mainly having a single object to publish/subscribe to (Facade). However, I was rather thinking about using integers (or maybe a big Enum, not the best choice as far as SoC is concerned, but easier to maintain in order to prevent conflicts) rather than strings to identify notifications (allows switch/case in Java and probably leads to faster code than String comparisons; as was done with com.google.gwt.user.client.Event's constants). All in all, PureMVC seems a little bit over-engineered, bringing too much overhead to the constrained environment that a web browser is... Looks like a good and clean pattern, but I'd rather build my own specific implementation from a "template project" than use this generic impl... (for example: why having a Notification class and INotification interface if you don't ever subclass/implement them? why not just have onHandleNotification(String name, Object body, String type) methods all over the place?) Actually, I didn't spend much more than half an our reading PureMVC docs and your code, so I probably missed a lot of things (btw, where's the userguide you talked about? I couldn't find it on puremvc.org, or is what's called "best practices"?) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
