>
> Well, my application is a chess server. The first thing I could identify 
> as a separate module is the "game" area, where you see the chess board and 
> where you can make moves and that. Second there is a "chat" area, where 
> users can send messages to others. Then, there are the profile settings for 
> each user, and so on...
>
> Are these the parts that could be separate modules?
>

Seems like. I would start by creating modules for different screens though 
and not for different components on the same screen. Splitting out 
components can still be done if a "screen" is still too slow.

Do these only affect the GUI/client part?
>

Yes.

Again: Is there a tutorial somewhere?
>

I am not aware of any but its not that hard I guess. Following your 
information you could create:

- GameArea.gwt.xml
- DevGameArea.gwt.xml

- Chat.gwt.xml
- DevChat.gwt.xml

Your current App.gwt.xml will inherit GameArea.gwt.xml and Chat.gwt.xml and 
should still work. The Dev*.gwt.xml files would inherit their non-dev 
versions and provide a new EntryPoint class. This EntryPoint class is then 
responsible to initialize your GameArea and display it in the RootPanel. 
That way you could start DevGameArea.gwt.xml in Dev-Mode and only see the 
game area widget. 

In DevGameArea.gwt.xml and DevChat.gwt.xml you would add a "rename-to" 
attribute that has the same value as your main App.gwt.xml. That way you 
don't need additional host html pages for your smaller modules.

But honestly a Chess game does not sound that large, so maybe you have a 
different problem that causes slow debugging. All I can say is that I can 
debug an application with about 120 KLOC client code without splitting it 
into several smaller modules. When a breakpoint is reached I can step 
through the code without any problems. But having smaller modules is also 
nice for SuperDevMode in GWT 2.5. Smaller modules should make the 
compilation super fast.

Nevertheless I would like to play a game against you in your chess GWT app! 
;-)

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/oeP5oYmnQ_cJ.
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.

Reply via email to