I’ve read several GWT developer blogs that mentioned some “rule of thumb” whereby if your resultant JavaScript will be 100 lines of code or greater, it is better to just write the JavaScript yourself (instead of generating it through GWT).
My question is: how can you tell how many LOC GWT will produce? This seems like a difficult rule of thumb to follow, and one that requires writing 2 sets of code (first writing the GWT, and then re-writing it in JavaScript)!?!?
Have I misunderstood something here?
The point of GWT is to save us from having to write JavaScript and using Vaadin (a java Web applications framework built on top of GWT) I created a number of UI controls I wouldn’t even know how to do in JavaScript.
The concern you do need to keep in mind is performance. I wrote a form that took over 20 seconds to render in IE8. It doesn’t matter how many LOC to your users, no one will wait so long for a page to appear.