When not to use Google Web Toolkit?
I'm considering use of GWT on a major in-house web app development project, namely it's major advantage in my eyes is the cross-compilation to Javascript which would (at least theoretically) help my team reduce the size of tech stack by one.
However, having been burnt before (like most devs), I would like to hear from programmers w开发者_JAVA技巧ho did actually use it on any problems with GWT which would hamper, or limit, it's use within a certain problem domain.
When do you not recommend using GWT, and why?
I didn't read all the comments in the link that Jamshid provided, so this might have been addressed there...
If you want to build something closer to a traditional web app (i.e., web 1.0) that is centered around the concept of pages and forms being submitted, then GWT will be a hindrance. However, if you want to build something with a richer interface that's more like a desktop app (i.e., web 2.0), then I've found GWT to be nifty for a couple reasons:
- I can write and test most of my code in Java, which I know much better than HTML and Javascript.
- I don't have to spend much time worrying about cross-browser support.
That said, GWT isn't perfect. Trying to integrate with third-party Javascript libraries is hardly pain free, and getting it to work how I wanted with maven and eclipse gave me a few headaches. If you do go with GWT, I highly recommend watching this presentation - Google Web Toolkit Architecture: Best Practices For Architecting Your GWT App.
Ive been using GWT since 2011. As any technology, it has its pro and cons. Main benefit, by far, is the fact that if you have a team with strong java skills (even maybe developers that worked with Swing) then GWT is a smooth step. It will be more familiar and probably you will get things done faster (at first) with it in comparisson with other technologies. Now, you said that it is a "major in-house webapp", so take in consideration that compilation time is a BIG ISSUE in GWT. See this GWT report from Vaadin https://vaadin.com/gwt-report-2012-portlet/download/1150559483/Future-of-GWT-Report-2012.pdf So, I believe that only in the described scenario using GWT would make sense.
精彩评论