Play for Scala: Covers Play 2 (Paperback)
暫譯: Scala 的 Play 框架:涵蓋 Play 2 (平裝本)

Peter Hilton, Erik Bakker, Francisco Canedo

  • 出版商: Manning
  • 出版日期: 2013-10-14
  • 定價: $1,650
  • 售價: 8.8$1,452
  • 語言: 英文
  • 頁數: 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 基於網頁的無狀態特性,提供卓越的可擴展性,並且因為它是基於事件和非阻塞的,你會發現它非常適合近乎實時的應用程式。

《Play for Scala》教你使用 Play 2 構建基於 Scala 的網頁應用程式。它通過一個全面的概述範例讓你開始,然後通過逐步走過範例程式碼片段和為運行範例添加功能來探索典型 Play 應用程式的各個方面。在這個過程中,你將加深對 Scala 的理解,並學會使用像 Akka 這樣的工具。

本書是為熟悉 Scala 和基於網頁的應用程式架構的讀者撰寫的,並不假設讀者具備 Play 的知識。

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

**內容概覽**

- Play 2 簡介
- Play 的 MVC 結構
- 精通 Scala 模板和表單
- 持久化數據和使用網頁服務
- 使用 Play 的進階功能

**關於作者**

Peter Hilton、Erik Bakker 和 Francisco Canedo 是 Lunatech 的工程師,該公司專注於 Scala 和 Play 的諮詢服務。他們是 Play 框架的貢獻者。

**目錄**

**第一部分:入門**

**第二部分:核心功能**

**第三部分:進階概念**

1. Play 簡介
2. 你的第一個 Play 應用程式
3. 解構 Play 應用程式架構
4. 定義應用程式的 HTTP 介面
5. 存儲數據—持久化層
6. 使用視圖模板構建用戶介面
7. 使用表單 API 驗證和處理輸入
8. 使用 JSON 構建單頁 JavaScript 應用程式
9. Play 及其他
10. 網頁服務、迭代器和 WebSockets