Play for Scala: Covers Play 2 (Paperback)

Peter Hilton, Erik Bakker, Francisco Canedo

  • 出版商: Manning
  • 出版日期: 2013-10-14
  • 定價: $1,650
  • 售價: 9.5$1,568
  • 語言: 英文
  • 頁數: 328
  • 裝訂: Paperback
  • ISBN: 1617290793
  • ISBN-13: 9781617290794
  • 相關分類: JVM 語言
  • 立即出貨(限量) (庫存=2)

買這商品的人也買了...

相關主題

商品描述

Summary

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 Inside

  • Intro 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.

Table of Contents

PART 1: GETTING STARTED
 
PART 2: CORE FUNCTIONALITY
 
PART 3: ADVANCED CONCEPTS
  1. Introduction to Play
  2. Your first Play application
  3. Deconstructing Play application architecture

  4. Defining the application's HTTP interface

  5. Storing data—the persistence layer

  6. Building a user interface with view templates

  7. Validating and processing input with the forms API
  8. Building a single-page JavaScript application with JSON

  9. Play and more
  10. Web services, iteratees, and WebSockets

商品描述(中文翻譯)


摘要

Play for Scala展示了如何使用Play 2框架構建基於Scala的網絡應用程序。本書首先通過一個全面的概述示例介紹了Play。然後,您將通過探索簡單的代碼片段和添加到一個更大的運行示例來研究典型Play應用程序的每個方面。在此過程中,您將加深對Scala作為一種編程語言的了解,並使用像Akka這樣的工具。

關於本書

Play是一個具有內置優勢的Scala網絡框架:Scala強大的類型系統有助於提供無錯誤的代碼,而Akka框架有助於實現無麻煩的並發和最佳性能。Play基於Web的無狀態特性,具有出色的可擴展性,並且由於它是基於事件和非阻塞的,因此非常適合近實時應用程序。

Play for Scala教您使用Play 2構建基於Scala的網絡應用程序。它通過一個全面的概述示例讓您上手。然後,它通過遍歷代碼片段並向運行示例添加功能來探索典型Play應用程序的每個方面。在此過程中,您將加深對Scala的了解,並學習使用像Akka這樣的工具。

本書適合熟悉Scala和基於Web的應用程序架構的讀者。不需要對Play有任何了解。

購買印刷版書籍將包括Manning Publications提供的PDF、Kindle和ePub格式的免費電子書。

內容簡介


  • Play 2入門

  • Play的MVC結構

  • 掌握Scala模板和表單

  • 持久化數據和使用Web服務

  • 使用Play的高級功能

關於作者

Peter HiltonvErik BakkerFrancisco Canedo是Lunatech的工程師,擁有Scala和Play的專業知識。他們是Play框架的貢獻者。

目錄

第1部分:入門

 

第2部分:核心功能

 

第3部分:高級概念


  1. Play簡介

  2. 您的第一個Play應用程序

  3. 解構Play應用程序架構



  4. 定義應用程序的HTTP接口



  5. 存儲數據-持久層



  6. 使用視圖模板構建用戶界面



  7. 使用表單API驗證和處理輸入

  8. 使用JSON構建單頁JavaScript應用程序



  9. Play和更多

  10. Web服務、迭代器和WebSockets