Skip to main content
  • Book
  • © 2013

Scala Design Patterns

Patterns for Practical Reuse and Design

Authors:

  • Interprets purely Functional Patterns in terms of design patterns for use in Scala's hybrid style

  • Illustrates how to maximise code reuse through functions, currying, and dependency injection using Scala language facilities

  • Presents the Gang of Four Design Patterns using Scala language structures (which differ significantly from languages such as Java with the inclusion of Functions as first class language elements)

Buy it now

Buying options

eBook USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 109.00
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (44 chapters)

  1. Front Matter

    Pages i-xxii
  2. Introduction

    1. Front Matter

      Pages 1-1
    2. Introduction

      • John Hunt
      Pages 3-11
    3. Design Patterns

      • John Hunt
      Pages 13-22
    4. UML and Scala

      • John Hunt
      Pages 23-50
  3. Fundamental Patterns

    1. Front Matter

      Pages 51-51
    2. Immutability

      • John Hunt
      Pages 53-59
    3. Singleton

      • John Hunt
      Pages 61-69
    4. Marker Trait

      • John Hunt
      Pages 71-75
    5. Delegation

      • John Hunt
      Pages 77-83
  4. Code Reuse Patterns

    1. Front Matter

      Pages 85-85
    2. Lazy Parameters

      • John Hunt
      Pages 87-91
    3. Partially Applied Functions

      • John Hunt
      Pages 93-97
    4. Trait Based Template Operation

      • John Hunt
      Pages 99-102
    5. Stackable Traits

      • John Hunt
      Pages 103-107
    6. Currying and Code Reuse

      • John Hunt
      Pages 109-114
    7. Cake Pattern

      • John Hunt
      Pages 115-119
    8. Structural Injection

      • John Hunt
      Pages 121-125
    9. Implicit Injection Pattern

      • John Hunt
      Pages 127-131
  5. Gang of Four Patterns

    1. Front Matter

      Pages 133-133

About this book

Scala is a new and exciting programming language that is a hybrid between object oriented languages such as Java and functional languages such as Haskell. As such it has its own programming idioms and development styles.

Scala Design Patterns looks at how code reuse can be successfully achieved in Scala. A major aspect of this is the reinterpretation of the original Gang of Four design patterns in terms of Scala and its language structures (that is the use of Traits, Classes, Objects and Functions). It includes an exploration of functional design patterns and considers how these can be interpreted in Scala's uniquely hybrid style.

A key aspect of the book is the many code examples that accompany each design pattern, allowing the reader to understand not just the design pattern but also to explore powerful and flexible Scala language features. Including numerous source code examples, this book will be of value to professionals and practitioners working in the field of software engineering.

Authors and Affiliations

  • Department of Computer Science and Creative Technologies, University of the West of England, Bristol, United Kingdom

    John Hunt

Bibliographic Information

  • Book Title: Scala Design Patterns

  • Book Subtitle: Patterns for Practical Reuse and Design

  • Authors: John Hunt

  • DOI: https://doi.org/10.1007/978-3-319-02192-8

  • Publisher: Springer Cham

  • eBook Packages: Computer Science, Computer Science (R0)

  • Copyright Information: Springer International Publishing Switzerland 2013

  • Hardcover ISBN: 978-3-319-02191-1Published: 06 December 2013

  • Softcover ISBN: 978-3-319-34972-5Published: 27 August 2016

  • eBook ISBN: 978-3-319-02192-8Published: 24 November 2013

  • Edition Number: 1

  • Number of Pages: XXII, 327

  • Number of Illustrations: 41 b/w illustrations, 49 illustrations in colour

  • Topics: Software Engineering/Programming and Operating Systems, Programming Techniques

Buy it now

Buying options

eBook USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 109.00
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access