Already know some Scala, but want to take the next step and make practical use of modern monadic design patterns? This is the book for you. This book addresses advanced programming techniques in Scala from the point of view of design patterns for web development. These patterns are discussed across the whole of the processing pipeline, from HTTP requests to storage and back again. Major emphasis is placed on key abstractions from functional programming that are often considered out of the purview of the professional programmer, but that are of key practical importance. Specifically, the book will look at * Monadic design patterns * Zippers and data type differentiation * Delimited continuations These will be applied to commonplace problems facing the server side of a web application, including * IO streams of HTTP requests * Mapping URLs to locations in in-memory and persisted data structures * Mapping in-memory data structures to storage * Managing state in an application that supports presence-based editing What you'll learn * Understand monadic design patterns, the new "object" technology. * Apply DSL-based design in a functional setting. * Hack at the type level.
* Program at the boundary between structure and control. * Dive into the jQuery UI tools and create image gallery management tools that will allow users to drag and drop photos to reorder the gallery. Who this book is for This book is for programmers with some experience of Scala who want to master modern monadic design patterns and use them for the Web.
Auflage
Sprache
Verlagsort
Zielgruppe
Für Beruf und Forschung
Popular/general
Maße
Höhe: 229 mm
Breite: 191 mm
ISBN-13
978-1-4302-2844-8 (9781430228448)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Klassifikation
Chapter 1: Motivation and background
Chapter 2: Our toolbox
Chapter 3: An I/O-monad for http-streams
Chapter 4: Parsing requests, monadically
Chapter 5: The domain model as an abstract syntax
Chapter 6: Zippers and contexts and URIs, oh my!
Chapter 7: A review of collections as monads
Chapter 8: Domain model, storage and state
Chapter 9: Putting it all together
Chapter 10: A semantic web