Saturday, November 24, 2012

Interface vs implementation

Hi!

I am aware of the fact that the GWT best practices are slightly different from the regular java recommendations. There is one question i would like to clarify. I am aware of the fact that when writing RPCs than the best practice is to use implementations as a return value f.e. ArrayList instead of List, because using less-specific classes forces the GWT compiler to generate serialization code for every serializable subclass of List. This make sense! My question is regarding the regular Widgets or (Presenter+View), is this still true in case of the ui code? To have

private ArrayList<String> myList = new ArrayList<String>();

is more effective than,

private List<String> myList = new ArrayList<String>();

Does the GWT compiler generate the JavaScript for each subclass of the List?

Thank you very much!!!



--
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/-/e2vgRK9n3UwJ.
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


Real Estate