Play for Scala: Covers Play 2 (英語) ペーパーバック – 2013/10/11
Kindle 端末は必要ありません。無料 Kindle アプリのいずれかをダウンロードすると、スマートフォン、タブレットPCで Kindle 本をお読みいただけます。
"Play for Scala" shows you how to build Scala-based web applications using the Play 2 framework. This book starts by introducing Play through a comprehensive overview example. Then, you'll look at each facet of a typical Play application both by exploring simple code snippets and by adding to a larger running example. Along the way, you'll deepen your knowledge of Scala as a programming language and work with tools like Akka.
About this Book
Play is a Scala web framework with built-in advantages: Scala's strong type system helps deliver bug-free code, and the Akka framework helps achieve hassle-free concurrency and peak performance. Play builds on the web's stateless nature for excellent scalability, and because it is event-based and nonblocking, you'll find it to be great for near real-time applications.
"Play for Scala" teaches you to build Scala-based web applications using Play 2. It gets you going with a comprehensive overview example. It then explores each facet of a typical Play application by walking through sample code snippets and adding features to a running example. Along the way, you'll deepen your knowledge of Scala and learn to work with tools like Akka.
Written for readers familiar with Scala and web-based application architectures. No knowledge of Play is assumed.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
What's InsideIntro to Play 2 Play's MVC structure Mastering Scala templates and forms Persisting data and using web services Using Play's advanced features
About the Authors
Peter Hiltonv, Erik Bakker, and Francisco Canedo, are engineers at Lunatech, a consultancy with Scala and Play expertise. They are contributors to the Play framework.
Peter Hilton is a senior solution architect at Lunatech Research in the Netherlands and a committer on the Play framework.
Erik Bakker, also at Lunatech, is a Play module contributor and regularly writes and presents about Play.
Francisco Canedo joined Lunatech in 2005 and has been focused on Scala and Play for the past 2 years.
The book is divided into 3 main parts: Getting Started, Core Functionality and Advanced Topics.
Part 1 - Getting Started
A really nice overview about how Play works, its internals and how you can get ready to start your Play server.
Some good HTTP key points which are a nice recap to start developing you first and very easy web-application.
Remember Play is not just a framework, it is a full-stack project. It gives you a server and a bunch of API to work with.
Part 2 - Core Functionality
From here on the book guides you in building a complete web-application that deals with input validation, data binding, template engine and all that comes with MVC.
MVC, the "C" part it is very well done, whilst the "V" part is what I liked most. It's about Play high-performance template engine a very powerful "toy" for the user-interface to get things done easily, quickly and elegant. It uses LESS and CoffeeScript; it says all.
In this part the book also covers the persistence layer, first with Anorm and then with Squeryl modules.
Part 3 - Advanced Topics
This last part covers how to build a SinglePageApplication with JSON and template engine.
It also shows you how to use the WebService API, handle cache results and work with WebSockets.
What I like most about the book is its step by step approach to learning about Play internals with Scala code.
A lots of Scala code.
For people like me, whom use to work with Java, this book is what you need to get started with Scala.
I really recommend this book for anyone, beginners and expert.
I would suggest the author to change book's title to "Scala no fear, just Play".
In the first part of the book, an effort is made to manage the expectations of the reader and put things in context. As such, if you are entirely new to Scala, you are better off taking up on a Scala tutorial or follow the fantastic Coursera course "Functional Programming in Scala" and then come back to this book.
Once you have some knowledge of Scala and you are not going to get completely completely confused by its syntax anymore it is time to open your mind to the way the Play framework approaches web application development. If you come from the J2EE world with an open mind, you will be pleasantly surprised. You will be writing expressive code and your app will look much less enterprisey without sacrificing on type safety.
A basic understanding of HTTP and HTML is expected from the beginning of the book and towards the end of the book more advanced topics are approached in a very understandable manner. By the time you are done with the book you will have been exposed to the full development of a web app that has an API producing and consuming JSON, a frontend written with Scala templates, LESS and Cofeescript, async tasks and websockets. All presented as incremental steps in the evolution of the app, as bite-sized sections easy to read, understand and keep at hand for future reference.
All in all, this is a great guide to get into Play development. You will be reading it once and understand the framework's philosophy, but don't put the book too far as you will keep coming back to it in order to recheck the examples for reference when developing your own apps.
- 洋書 > Computers & Technology > Networking > Network Programming
- 洋書 > Computers & Technology > Programming > Languages & Tools > Java
- 洋書 > Computers & Technology > Programming > Software Design, Testing & Engineering > Software Development
- 洋書 > Computers & Technology > Web Development & Design > Programming
- 洋書 > Computers & Technology > Web Development & Design > Web Design
- 洋書 > Education & Reference