play live coding
TRANSCRIPT
• It's designed by web developers for web developers.• Type safety everywhere so you can have safe s…• Better testing capabilities• DI at compile time and runtime• Great ecosystem• Scheduling and asynchronous capabilities• Abstraction so it is easy to switch components• Asset compiler so you javascript is also typesafe• JSON is a first class citizen• Websockets, Comet, EventSource• Streams• So much to tell about him…• And once you join the club you can’t get out ;)
Play 2 - Fight club
Bring simplicity to a complex world
Play 2 - Shocking
• It's designed by web developers for web developers.• Type safety everywhere so you can have safe s…• Better testing capabilities• DI at compile time and runtime• Great ecosystem• Scheduling and asynchronous capabilities• Abstraction so it is easy to switch components• Asset compiler so you javascript is also typesafe• JSON is a first class citizen• Websockets, Comet, EventSource• Streams• So much to tell about him…• And once you join the club you can’t get out ;)
We are going to see in more details
A basic Play applicationController and ActionRoutesViewsReverse routingScala codeIteratee, Enumerator and EnumerateeWebsocketJSON parsingWS LibraryJavascript code…
All in 30mn… So not time for tests
Before we start:
Actors = Improved thread that reacts to event
Enumerator = producer of data
Iteratee = consumer of data
Enumeratee = Transform data from an enumerator to an iteratee