11
@nicolasleroux 24 November 2016 An introduction to Play 2

Play Live Coding

Embed Size (px)

Citation preview

@nicolasleroux 24 November 2016

An introduction to Play 2

Agenda

Play 2

November 4, 2016

Code

Play 2: developing is like having a good lunch

Bring simplicity to java development

• 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 ;)

Bring simplicity and modularity to an asynchronous world

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

Bring simplicity to a complex world

Demo

Confidential

Questions?

That’s all folks!@NicolasLeroux

November 24, 2016