11. PLAY INTRODUCE
The Play Framework combines productivity and performance making it easy to build
scalable web applications with Java and Scala. !
!
Play is developer friendly with a "just hit refresh" workflow and built-in testing support. !
!
With Play, applications scale predictably due to a stateless and non-blocking
architecture. !
!
By being RESTful by default, including assets compilers, JSON & WebSocket support, !
!
Play is a perfect fit for modern web & mobile applications.
12. PLAY GOOD THINGS
The Play Framework combines productivity and performance making it
easy to build scalable web applications with Java and Scala. !
!
Play is developer friendly with a "just
hit refresh" workflow and built-in
testing support. !
!
With Play, applications scale predictably due to a stateless and non-
blocking architecture. !
!
By being RESTful by default, including assets
compilers, JSON &
WebSocket support, !
!
Play is a perfect fit for modern
web & mobile applications.
36. JSON
case class RegisterInfo(email: String, password:
Option[String], partnerId: Option[String])
implicit val registerInfoReads = Json.reads[RegisterInfo]
def result: BusinessResult[CreatedAccount] =
Try(request.body.validate[RegisterInfo].get) match {
case Success(registerInfo) => business.register(registerInfo)
case Failure(e) => FailedResult(invalidJson,
List(Messages("invalid.json.format")))
}
37. PLAY INTRODUCE
The Play Framework combines productivity and performance making it easy to build
scalable web applications with Java and Scala. !
!
Play is developer friendly with a "just hit refresh" workflow and built-in testing support. !
!
With Play, applications scale predictably due to a stateless and non-blocking
architecture. !
!
By being RESTful by default, including assets compilers, JSON & WebSocket support, !
!
Play is a perfect fit for
modern web
& mobile applications.
39. MODERN WEB
!
Designing for mobile first (even if you’re not building a
mobile app)
Build only single page apps
Create and use your own REST API
“Sex sells” applies to web apps
http://blogs.atlassian.com/2012/01/modern-principles-in-web-development/