• Complain

Peter Hilton - Play for Scala: Covers Play 2

Here you can read online Peter Hilton - Play for Scala: Covers Play 2 full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2013, publisher: Manning Publications, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Peter Hilton Play for Scala: Covers Play 2

Play for Scala: Covers Play 2: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Play for Scala: Covers Play 2" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

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, youll 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, youll 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: Scalas strong type system helps deliver bug-free code, and the Akka framework helps achieve hassle-free concurrency and peak performance. Play builds on the webs stateless nature for excellent scalability, and because it is event-based and nonblocking, youll 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, youll 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.

Whats Inside

  • Intro to Play 2
  • Plays MVC structure
  • Mastering Scala templates and forms
  • Persisting data and using web services
  • Using Plays 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
  1. Introduction to Play
  2. Your first Play application

  3. PART 2: CORE FUNCTIONALITY
  4. Deconstructing Play application architecture

  5. Defining the applications HTTP interface

  6. Storing datathe persistence layer

  7. Building a user interface with view templates

  8. Validating and processing input with the forms API

  9. PART 3: ADVANCED CONCEPTS
  10. Building a single-page JavaScript application with JSON

  11. Play and more
  12. Web services, iteratees, and WebSockets

Peter Hilton: author's other books


Who wrote Play for Scala: Covers Play 2? Find out the surname, the name of the author of the book and a list of all author's works by series.

Play for Scala: Covers Play 2 — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Play for Scala: Covers Play 2" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Play for Scala: Covers Play 2
Peter Hilton, Erik Bakker, and Francisco Canedo

Play for Scala Covers Play 2 - image 1

Copyright

For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact

Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 261 Shelter Island, NY 11964 Email: orders@manning.com

2014 by Manning Publications Co. All rights reserved.

No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps.

Picture 2 Recognizing the importance of preserving what has been written, it is Mannings policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine.

Picture 3Manning Publications Co.20 Baldwin RoadShelter Island, NY 11964Development editor: Jeff BleielCopyeditor: Benjamin BergProofreaders: Andy Carroll, Toma MulliganTypesetter: Gordan SalinovicCover designer: Marija Tudor

ISBN 9781617290794

Printed in the United States of America

1 2 3 4 5 6 7 8 9 10 MAL 18 17 16 15 14 13

Brief Table of Contents
Table of Contents
Foreword

Change comes in waves. Youre reading this book because you want to be part of the next wave of change in software development. Big data, mobile, JavaScript-based web apps, RESTful services, functional programming, and the real-time web are propelling us into a new era. Every new era is accompanied by a new set of tools, which keen developers wield to build amazing things. Play Framework and Scala are the tools youll use to ride the approaching wave and build the next amazing thing.

When surfing a new wave, its best to go along with experts in the surf break. They can tell you when and where to go, what places to avoid, and how to have a smooth ride. Peter Hilton, Erik Bakker, and Francisco Canedo are your experts in the Play and Scala break. They all have extensive experience building amazing things with these tools. Before most of us even saw the wave, they were riding it and building the tools the rest of us need. Play for Scala is your guide to this new surf break.

Whether youre just getting started with Play or building a real-time app with iteratees, this book will guide you well. The authors have done a great job of providing the right level of detail. They havent obviated the need to do some self-exploration, Google searches, and check Stack Overflow. Yet their code examples are complete and well explained. Its hard to write a book that fits the needs of novices and experts, but somehow Hilton, Bakker, and Canedo pulled it off. Play for Scala has exactly the right verbosity level.

Now comes the fun part. The wave is approaching, so grab your tools, paddle out with your expert guides, and surf your way into the next era of software development!

J AMES W ARD
D EVELOPER A DVOCATE AT T YPESAFE
WWW.JAMESWARD.COM

Preface

We were early adopters of Play and saw it gain popularity among a wide variety of Play developers. Now its time for Play to go mainstream.

Play 1.0

When I first tried the Play 1.0 release in 2010, I was struck by how simple it was. Having tried many different web frameworks, it was a refreshing change to find one that used what I already knew about HTTP and HTML (the web) instead of being based on non-web technology. In fact, the developer experience was so good, it felt like cheating.

I was also impressed by how finished Play seemed: this was no early experimental release. Many open-source projects adopt the release early, release often philosophy, which means a first public release is a version 0.1 thats more of a prototype, vision statement, and call for participation. Play, on the other hand, started at version 1.0 and had clearly already been used to build real applications. Zenexity used Play on customer projects for some time before releasing version 1.0, and it wasnt just Java developers using Play; web developers had been using it too. You could tell.

The idea that Play would be for web developers, not just Java developers, turned out to be the most important of goals because of the consequences for the frameworks design. After years of struggling with frameworks that make it hard to make nice HTTP interfaceseven at the simplest level of building web applications whose URLs werent uglyhere was a framework that actually helped. Suddenly we were running with the wind.

At first, we figured that this was a small framework for small applications, which was nice because it meant that we wouldnt have to use PHP any more for easy problems. What actually happened was that each Play application was bigger or more complex than the last, and was another chance to get away with not using Java EE. We didnt just get away with using Play; by the time Play 1.2 was released in 2011, we started to get away from having to use Java EE, and JSF in particular, which had become the new JSP for me (only more complex).

At this point, it only seemed fair to help more Java web developers start using Play. And then there was Scala.

Play for Scala

For us, Play 2 came at a time when we were discarding more than just writing web applications with JSP or JSF. We were also starting to use Scala instead of Java. The Play early adopters and the Scala early adopters then found each other, and we realized that the combination is even more compelling.

When we started talking to people about moving on from Java EE, we discovered that people can get upset when you suggest that the technology that theyve devoted a significant portion of their career to mastering is an architectural dead end, and that its time for something new. Moving on is hard, but inevitable if you dont want to be the next COBOL programmer. You know youre a junior developer when none of the things on your CV have become legacy yet.

In our business, its important to be ready for something new. As with many kinds of beliefs, youre going to be happier if your technology choices are strong opinions, loosely held. The arrival of Play 2 was clearly not just a new version; it was a challenge to take what wed been doing to something more mainstream.

At Lunatech, technology adoption follows a kind of progression, starting from a single enthusiast and initial experiments, moving on to low-risk use by a few people, and finally to full adoption on development projects for external customers. At each stage, most technologies are discarded; Play and Scala survived this natural selection in the technology space and are now used by most of us on nearly all of our new projects.

Having made this kind of change before, we understand that switching to Play or switching to Scala can be a big step, especially if you do both at the same time. We were open to the idea that something more than a few blog posts and some documentation was needed, and we came to the surprising conclusion that the world needed another computer book.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Play for Scala: Covers Play 2»

Look at similar books to Play for Scala: Covers Play 2. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Play for Scala: Covers Play 2»

Discussion, reviews of the book Play for Scala: Covers Play 2 and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.