Using Vaadin to create HTML5-enabled web apps in pure Scala
1. Using Vaadin to create
HTML5-enabled web
apps in pure Scala
twitter: #vaadin @henrimuurimaa
Henri Muurimaa
Vaadin Ltd
henri@vaadin.com
14. marraskuuta 11
3. Scala is ...
A multiparadigm language created by
Martin Odersky from Typesafe
Object-oriented: every value is an object
Functional: every function is a value
Java compatible: Runs on the JVM and
integrates with Java tools and
technologies
14. marraskuuta 11
4. Cross-document
messaging Document
editing
Multimedia
Microdata
Offline storage
Markup Canvas
improvements History
management
Forms
Geolocation Drag-and-drop File API
14. marraskuuta 11
5. Cross-document
messaging Document
editing
Multimedia
Microdata
Offline storage
Markup Canvas
improvements History
management
Forms
Geolocation Drag-and-drop File API
14. marraskuuta 11
12. Vaadin UI component
architecture
HTTP(S)
“UI Component” “Widget”
• Button, Table, Tree, ... • Client-side peer for
• Server-side data the component
• Full Java API • Runs on JavaScript
Java, Scala, ... Java
• Compiled with JDK • Google Web Toolkit
14. marraskuuta 11
18. The universe of the Game of Life is an
infinite two-dimensional orthogonal
grid of square cells, each of which is
in one of two possible states, alive or
dead. Every cell interacts with its
eight neighbors.
-- Wikipedia
14. marraskuuta 11
19. Evolution
A living cell with less than 2 or
more than 3 live neighbors dies
A living cell with 2 or 3 living
neighbors stays alive
A dead cell with exactly 3 living
neighbors becomes alive
14. marraskuuta 11
20. Sources
http://github.com/hezamu/Devoxx2011
14. marraskuuta 11
21. Vaadin BOF today
at 19.00 in room BOF 2!
GET A
Free
Copy
14. marraskuuta 11