Google Web Toolkit (JUG Latvia)

807 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
807
On SlideShare
0
From Embeds
0
Number of Embeds
32
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Google Web Toolkit (JUG Latvia)

  1. 1. Google Web Toolkit www.jug.lv
  2. 2. Agenda Introduction Why is unique? Why needed? Who uses?
  3. 3. Poll Who knows what GWT is? Who tried that? Who is using in projects?
  4. 4. Compared to Other Frameworks Struts JSF Apache Wicket ZK Spring MVC Rails ...
  5. 5. The Reality Not really the same… GWT is a Rich Client Framework Similar to hand-written JavaScript client
  6. 6. Architecture Standalone client HTTP/Ajax communication Rich Client (JavaScript) Java Backend (REST, RPC) HTTP http://gwt.google.com/samples/Mail/Mail.html
  7. 7. The Essence Swing-like development model Cross-browser Java to JavaScript Compiler
  8. 8. Statement GWT is one of the best tools for webapp scalability
  9. 9. GWT Performance Tricks trafficmemorycpu
  10. 10. GWT Compiler Translation Optimization Compression Obfuscation
  11. 11. Deferred Binding Separate JS for each browser Byte- code Java Script Java Script Java Script Java Code javac gwtc
  12. 12. Bootstrap Sequence index.html (small, temporary cache) nocache.js (small) cache.js (large, eternal cache)
  13. 13. Code Splitting Single JS is too large Split Points Loads JS in parts HTTP Main.java One.java Two.java Three.java
  14. 14. No Page Reloads Anchors-based Single page application No refreshes (no HTTP traffic) http://www.site.com/#index http://www.site.com/#search http://www.site.com/#resource/1?option=Y
  15. 15. Async Model Single thread Callbacks
  16. 16. RPC Serialization Direct-Eval Simple TODO Give snippets
  17. 17. Resource Bundles Images Text resources CSS
  18. 18. Summary
  19. 19. GWT Pros and Cons + Full control + Performance and scalability + Portability + Development Speed - Non-trivial development model - Plenty of design/architecture options - IE6 and IE7 are still out there...
  20. 20. Conclusions Very powerful yet complicated tool Cache everything Compress everything Less HTTP requests
  21. 21. Future Version 2.1 is out now (October 29th)
  22. 22. Questions http://code.google.com/webtoolkit/
  23. 23. About the Speaker Dmitry Buzdin Agile software developer working with Java since 2005 Based in C.T.Co Reach me at buzdin@gmail.com

×