google web toolkit
play

Google Web Toolkit Stephen Bilston Stuart Johnson Eric Fath-Kolmes - PowerPoint PPT Presentation

Google Web Toolkit Stephen Bilston Stuart Johnson Eric Fath-Kolmes Ai Ci Lin Andrew Nisbet Presentation Goals What is GWT? An overview of GWT's features. When should I use GWT? Who's using it? Finally what you can do with it? What are


  1. Google Web Toolkit Stephen Bilston Stuart Johnson Eric Fath-Kolmes Ai Ci Lin Andrew Nisbet

  2. Presentation Goals What is GWT? An overview of GWT's features. When should I use GWT? Who's using it? Finally what you can do with it? What are the risks?

  3. What is Google Web Toolkit (GWT)? Develop Webapps using Java Compile the Java to X-browser Javascript Finally a magic bullet to fix Everything!

  4. What's so great about it Abstracts away HTML and CSS Makes Client server communcation easy Has robust 3rd party libaraies Easy deployment

  5. Eases Web development Lets you avoid HTML and CSS along with all there vairous oddities Many programmers already know java but don't know JavaScript, GWT moves the task of learning from new languages to what is effectively another library Writing javascript can be weird - GWT removes much of the weirdness

  6. Makes client server comuncation easy Two easy methods: GWT-RPC Almost makes server commuincation feel like local method calls Has rather good serialization functionality Request Factory Acts like a fake ORM(Object Relational Mapping) for the client side Normal Ajax if you really want to

  7. Has robust third party libaries Smart GWT Widgets Dual licensed Ext GWT More Widgets Dual licensed with reduced functionaliy Vaadin Widgets Server Side functionality(validation, etc)

  8. Easy depoyment Uses Java Servlets for GWT-RPC and Request Factory Lots of options(Tomcat, JBoss etc..) If your okay with the abstraction leaking a bit you can use anything to do generic AJAX Php Ruby Perl Whatever Using java server side is an easy sell

  9. Code Quality Concerns Debugging -With GWT, you can debug java byte code directly as it was executed in a simulated browser environment. Testing Profiling

  10. Testing To Reveal A Bug That Has Succeeded Standard fare in traditional programming but aren’t as common in for client-side web technology. Based on Junit and on a few extensions the toolkit provides. Can be tested as Java or Javascript using the same test. GWT does the scaffolding. Java also comes with first class tooling support. - Checkstyle, FindBugs. -Advanced refactoring engines, debuggers and profilers available for standard Java programming all function normally within GWT.

  11. Advanced Testing Concept-BenchMark A type of GWTTestcase that records the performance results. The results of all executed benchmarks are collected and stored in an XML. Report is viewable with GWT BenchMark Report Viewer. Can run multiple times tested against the possible parameter values.

  12. Advanced Testing Concept-BenchMark /* @gwt.benchmark.param size -limit = baseRange */ public void testArrayListAdds(Integer size) { int num = size.intValue(); for (int i = 0; i < num; i++) { list.add("hello”); } }

  13. Profiling Hosted Mode Profiling -Use any standard Java profiling you are likely accustomed to. Like Jprofile, TPTP Web Mode Profiling - Firefox Firebug -Chrome Speed Tracer

  14. Google Chrome: Speed Tracer

  15. Who Uses It? Google AdWords Wave Checkout Base Orkut (social networking) Mashup (deprecated. They now use Apps Engine) YesMail Enterprise Subscription based e-mail marketing app ContactOffice Contact management system

  16. When To Use Building Rich Internet Applications Including complex websites AJAX Optimized Javascript Works on all browsers Avoid Legacy Systems

  17. Tools Java Many IDEs available Good resources GWT specific Javadoc and examples/tutorials On Google's GWT page WYSIWYG UI Designer

  18. GWT Designer

  19. Simple Demo http://calcpresentation.appspot.com/

  20. Conclusion Powerful well thought out framework Write in Java leverage developer's current tool set Debugging and profiling come to JavaScript Rules of thumb for adopting GWT: Need to put an application on the web New or emerging project or Limited legacy reliance on Collections and IO

  21. Quake2 GWT http://code.google.com/p/quake2-gwt- port/

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend