O'Reilly logo

Learning Play! Framework 2 by Andy Petrella

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Scala – Taking the First Step

Play! Framework in its second version has been implemented using the programming language Scala. That is, the whole core is Scala based, but APIs are available in both Java and Scala (without closing the doors on other JVM languages in the future).

If we're able to keep Java as the programming language of our web application, the template system is still a Scala one. Hopefully, the scope of a templating system shouldn't include business logic, as a result of which the needs are often quite simple and recurrent.

This chapter's intent is to provide a very high-level view of what Scala is, without going deeper into the details. Following are the topics that will be covered:

  • An introduction to what Scala is

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required