Re: optimizing GWT code
As Magno said, refactor your code into multiple methods/classes.
Create logical packages - for UI, biz-logic, data-model, server-
connections (RPC or ReguestBuilder or otherwise).
Study some decently sized application on places like Sourceforge to
get idea of how to structure your application ;)
--
Happy Hacking,
Gaurav Vaish
http://www.incoleg.com
On Apr 17, 1:54 am, Magno Machado <magn...@gmail.com> wrote:
> This is pretty much like having a huge main() method on a traditional Java
> application
>
> It's hard to tell what you can do without knowing your code, but I'd try to
> refactor this code and separate it into other classes and methods with well
> defined responsabilities.
>
> Are you instantiating widgets inside your entry point to build a GUI? If so,
> try to put that on another class, using UiBinder
>
>
>
> On Fri, Apr 15, 2011 at 11:26 AM, Carlos <hbazz...@gmail.com> wrote:
> > hi all,
>
> > am creating a web application testing tool for a specific server, and
> > using gwt for this purpose (first contact with gwt). The code of the
> > EntryPoint class is enorme and somehow confusing for anyone who wants
> > to re-read it or modify it after me. so how i can realy optimize the
> > code? is writing several EntryPoint classes can solve the problem? and
> > if so what problems would i face with respect to performance of
> > loading and etc....
>
> > Merci d'avance.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Magno Machado Paulohttp://blog.magnomachado.com.brhttp://code.google.com/p/emballo/
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home